Code Review
/
vpp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
e8d8d47
)
session: safe pools for cut-through sessions
15/35915/9
author
Florin Coras
<fcoras@cisco.com>
Thu, 7 Apr 2022 19:58:13 +0000
(12:58 -0700)
committer
Florin Coras
<florin.coras@gmail.com>
Fri, 11 Nov 2022 01:01:50 +0000
(
01:01
+0000)
Type: improvement
Signed-off-by: Florin Coras <fcoras@cisco.com>
Change-Id: I6dd400285ae475974c416f9b94e8a5b4b6257ca1
src/vnet/session/application_local.c
patch
|
blob
|
history
diff --git
a/src/vnet/session/application_local.c
b/src/vnet/session/application_local.c
index
d2a69dc
..
f81e6bb
100644
(file)
--- 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;