diff options
author | Florin Coras <fcoras@cisco.com> | 2022-03-30 10:11:55 -0700 |
---|---|---|
committer | Dave Wallace <dwallacelf@gmail.com> | 2022-10-31 15:24:18 +0000 |
commit | 768f284351fc680d90d8e4f41be14579e110c588 (patch) | |
tree | e142f2f0a1bb87a12f1fff1fad926392505022e2 /src/plugins/quic/quic.c | |
parent | 009303dc06f8ecf4ed16c71e18c4e7fd40372eeb (diff) |
quic: use safe pool realloc
Type: improvement
Signed-off-by: Florin Coras <fcoras@cisco.com>
Change-Id: Ia03c3fe0ca669b319dec8decd503254d0a95e58b
Diffstat (limited to 'src/plugins/quic/quic.c')
-rw-r--r-- | src/plugins/quic/quic.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/quic/quic.c b/src/plugins/quic/quic.c index 5106031c681..e4ea38cfb48 100644 --- a/src/plugins/quic/quic.c +++ b/src/plugins/quic/quic.c @@ -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; |