From 97fef28a0bd700d6ac6d8325e8a4335614d95bec Mon Sep 17 00:00:00 2001 From: Florin Coras Date: Thu, 21 Dec 2023 19:41:12 -0800 Subject: session: make app listener pool global One less pointer chase when accepting sessions. Type: improvement Signed-off-by: Florin Coras Change-Id: I20dbb21d15d4a703f76e3b12f04a6f5b5d2a3cd8 --- src/vnet/session/application_worker.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/vnet/session/application_worker.c') diff --git a/src/vnet/session/application_worker.c b/src/vnet/session/application_worker.c index ea5a4db7fd5..5a7402871b9 100644 --- a/src/vnet/session/application_worker.c +++ b/src/vnet/session/application_worker.c @@ -194,7 +194,7 @@ app_worker_alloc_wrk_cl_session (app_worker_t *app_wrk, session_t *ls) app_listener_t *al; session_t *s; - al = app_listener_get_w_session (ls); + al = app_listener_get (ls->al_index); sm = app_worker_get_listen_segment_manager (app_wrk, ls); lsh = session_handle (ls); @@ -230,7 +230,7 @@ app_worker_free_wrk_cl_session (app_worker_t *app_wrk, session_t *ls) app_listener_t *al; session_t *s; - al = app_listener_get_w_session (ls); + al = app_listener_get (ls->al_index); s = app_listener_get_wrk_cl_session (al, app_wrk->wrk_map_index); segment_manager_dealloc_fifos (s->rx_fifo, s->tx_fifo); -- cgit 1.2.3-korg