From 6af9330c637d4e1379f17b0a4f325c4d82aa9b6c Mon Sep 17 00:00:00 2001 From: Florin Coras Date: Tue, 5 Apr 2022 16:35:39 -0700 Subject: http: use safe pool realloc Type: improvement Signed-off-by: Florin Coras Change-Id: I572017433a1ba0f8576522f02138928e303e10ab --- src/plugins/http/http.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/plugins/http/http.c') diff --git a/src/plugins/http/http.c b/src/plugins/http/http.c index 752ca47a691..048b403cd74 100644 --- a/src/plugins/http/http.c +++ b/src/plugins/http/http.c @@ -59,7 +59,8 @@ http_conn_alloc_w_thread (u32 thread_index) http_worker_t *wrk = http_worker_get (thread_index); http_conn_t *hc; - pool_get_zero (wrk->conn_pool, hc); + pool_get_aligned_safe (wrk->conn_pool, hc, CLIB_CACHE_LINE_BYTES); + clib_memset (hc, 0, sizeof (*hc)); hc->c_thread_index = thread_index; hc->h_hc_index = hc - wrk->conn_pool; hc->h_pa_session_handle = SESSION_INVALID_HANDLE; -- cgit 1.2.3-korg