summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2024-01-22 18:38:08 -0800
committerDave Barach <vpp@barachs.net>2024-01-23 16:32:28 +0000
commite6d05dc1b6420f6de2703b2b14a4845ea7436a39 (patch)
treef98958c24783aa3fb7263ee135be18309323d139 /src
parentfad689eeba861f080596e305f2b3e5d0bfaa046d (diff)
tls: overlap parent opaque with listener ctx
Type: improvement Signed-off-by: Florin Coras <fcoras@cisco.com> Change-Id: I0a0d0b8721f5a15da47c7ac0e58cd50e159b2f54
Diffstat (limited to 'src')
-rw-r--r--src/vnet/tls/tls.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/vnet/tls/tls.h b/src/vnet/tls/tls.h
index 0ae8123aed0..60f96ee5f4f 100644
--- a/src/vnet/tls/tls.h
+++ b/src/vnet/tls/tls.h
@@ -39,15 +39,16 @@
/* *INDENT-OFF* */
typedef struct tls_cxt_id_
{
- union {
- session_handle_t app_session_handle;
- u32 parent_app_api_ctx;
- };
+ session_handle_t app_session_handle;
session_handle_t tls_session_handle;
void *migrate_ctx;
u32 parent_app_wrk_index;
u32 ssl_ctx;
- u32 listener_ctx_index;
+ union
+ {
+ u32 listener_ctx_index;
+ u32 parent_app_api_ctx;
+ };
u8 tcp_is_ip4;
u8 tls_engine_id;
} tls_ctx_id_t;