aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet/tls/tls.h
diff options
context:
space:
mode:
authorVarun Rapelly <vrapelly@marvell.com>2024-08-17 16:19:29 +0000
committerFlorin Coras <florin.coras@gmail.com>2024-12-07 21:18:54 +0000
commitb8af24b26d3e1cd2240a9c2ee11340ba9b696f6c (patch)
treef9c7f031fd56b593efdc9fbf0a59dd5342a326af /src/vnet/tls/tls.h
parent0ec906694d9675f6e2319fb8d8422bc59349b418 (diff)
tls: add async processing support
Adds support for tls async processing using OpenSSL. Adds new CLI command to configure OpenSSL TLS configurations used by OpenSSL context and session. New CLI format is: tls openssl set-tls [record-size <size>] [record-split-size <size>] [max-pipelines <size>] Sets default values to below TLS configuration parameters: - first_seg_size: 32MB - add_seg_size: 256MB Type: feature Signed-off-by: Varun Rapelly <vrapelly@marvell.com> Change-Id: I990be31fced9e258fdb036f5751cd67594b0bce7
Diffstat (limited to 'src/vnet/tls/tls.h')
-rw-r--r--src/vnet/tls/tls.h17
1 files changed, 15 insertions, 2 deletions
diff --git a/src/vnet/tls/tls.h b/src/vnet/tls/tls.h
index e56c4c079ac..244e2042f11 100644
--- a/src/vnet/tls/tls.h
+++ b/src/vnet/tls/tls.h
@@ -40,6 +40,19 @@
#define TLS_DBG(_lvl, _fmt, _args...)
#endif
+#define foreach_ssl_async_evt_type \
+ _ (INIT, "SSL_in_init async event") \
+ _ (RD, "Read async event") \
+ _ (WR, "Write async event") \
+ _ (MAX, "Maximum async event")
+
+typedef enum ssl_async_evt_type_
+{
+#define _(sym, str) SSL_ASYNC_EVT_##sym,
+ foreach_ssl_async_evt_type
+#undef _
+} ssl_async_evt_type_t;
+
typedef struct tls_cxt_id_
{
session_handle_t app_session_handle;
@@ -66,7 +79,8 @@ STATIC_ASSERT (sizeof (tls_ctx_id_t) <= TRANSPORT_CONN_ID_LEN,
_ (MIGRATED, "migrated") \
_ (NO_APP_SESSION, "no-app-session") \
_ (RESUME, "resume") \
- _ (HS_DONE, "handshake-done")
+ _ (HS_DONE, "handshake-done") \
+ _ (ASYNC_RD, "async-read")
typedef enum tls_conn_flags_bit_
{
@@ -105,7 +119,6 @@ typedef struct tls_ctx_
u32 ts_app_index;
tls_conn_flags_t flags;
u8 *srv_hostname;
- u32 evt_index;
u32 ckpair_index;
transport_proto_t tls_type;
} tls_ctx_t;