session: safe pools for cut-through sessions
Type: improvement Signed-off-by: Florin Coras <fcoras@cisco.com> Change-Id: I6dd400285ae475974c416f9b94e8a5b4b6257ca1
This commit is contained in:
Florin Coras
committed by
Florin Coras
parent
e8d8d47dca
commit
9688b3bda2
@ -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;
|
||||
|
Reference in New Issue
Block a user