quic: use safe pool realloc

Type: improvement

Signed-off-by: Florin Coras <fcoras@cisco.com>
Change-Id: Ia03c3fe0ca669b319dec8decd503254d0a95e58b
This commit is contained in:
Florin Coras
2022-03-30 10:11:55 -07:00
committed by Dave Wallace
parent 009303dc06
commit 768f284351

View File

@ -388,7 +388,8 @@ quic_ctx_alloc (u32 thread_index)
quic_main_t *qm = &quic_main;
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));
ctx->c_thread_index = thread_index;