quic: use safe pool realloc
Type: improvement Signed-off-by: Florin Coras <fcoras@cisco.com> Change-Id: Ia03c3fe0ca669b319dec8decd503254d0a95e58b
This commit is contained in:
![fcoras@cisco.com](/assets/img/avatar_default.png)
committed by
Dave Wallace
![Dave Wallace](/assets/img/avatar_default.png)
parent
009303dc06
commit
768f284351
@ -388,7 +388,8 @@ quic_ctx_alloc (u32 thread_index)
|
|||||||
quic_main_t *qm = &quic_main;
|
quic_main_t *qm = &quic_main;
|
||||||
quic_ctx_t *ctx;
|
quic_ctx_t *ctx;
|
||||||
|
|
||||||
pool_get (qm->ctx_pool[thread_index], ctx);
|
pool_get_aligned_safe (qm->ctx_pool[thread_index], ctx,
|
||||||
|
CLIB_CACHE_LINE_BYTES);
|
||||||
|
|
||||||
clib_memset (ctx, 0, sizeof (quic_ctx_t));
|
clib_memset (ctx, 0, sizeof (quic_ctx_t));
|
||||||
ctx->c_thread_index = thread_index;
|
ctx->c_thread_index = thread_index;
|
||||||
|
Reference in New Issue
Block a user