diff options
author | Florin Coras <fcoras@cisco.com> | 2022-04-07 12:58:13 -0700 |
---|---|---|
committer | Florin Coras <florin.coras@gmail.com> | 2022-11-11 01:01:50 +0000 |
commit | 9688b3bda2a1c27c2e831c36d9e4432d552dfe58 (patch) | |
tree | c616618e3a09cb6c2b63884712d58a170bfa0cf6 /src | |
parent | e8d8d47dca42113706abc05663b436d2664e1612 (diff) |
session: safe pools for cut-through sessions
Type: improvement
Signed-off-by: Florin Coras <fcoras@cisco.com>
Change-Id: I6dd400285ae475974c416f9b94e8a5b4b6257ca1
Diffstat (limited to 'src')
-rw-r--r-- | src/vnet/session/application_local.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/vnet/session/application_local.c b/src/vnet/session/application_local.c index d2a69dc282b..f81e6bb067e 100644 --- a/src/vnet/session/application_local.c +++ b/src/vnet/session/application_local.c @@ -81,7 +81,8 @@ ct_connection_alloc (u32 thread_index) ct_worker_t *wrk = ct_worker_get (thread_index); ct_connection_t *ct; - pool_get_zero (wrk->connections, ct); + pool_get_aligned_safe (wrk->connections, ct, CLIB_CACHE_LINE_BYTES); + clib_memset (ct, 0, sizeof (*ct)); ct->c_c_index = ct - wrk->connections; ct->c_thread_index = thread_index; ct->client_wrk = ~0; |