diff options
author | Florin Coras <fcoras@cisco.com> | 2023-12-21 19:41:12 -0800 |
---|---|---|
committer | Dave Barach <vpp@barachs.net> | 2024-01-09 17:07:54 +0000 |
commit | 97fef28a0bd700d6ac6d8325e8a4335614d95bec (patch) | |
tree | c2cd572c8d0c9674dc21c4341aa9cb3adeebda1d /src/vnet/session/application.h | |
parent | 7428eaa4a1ae55052825cdc6c0a9ae6c4f8748ac (diff) |
session: make app listener pool global
One less pointer chase when accepting sessions.
Type: improvement
Signed-off-by: Florin Coras <fcoras@cisco.com>
Change-Id: I20dbb21d15d4a703f76e3b12f04a6f5b5d2a3cd8
Diffstat (limited to 'src/vnet/session/application.h')
-rw-r--r-- | src/vnet/session/application.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/vnet/session/application.h b/src/vnet/session/application.h index 7c63b90ac5a..22896b174be 100644 --- a/src/vnet/session/application.h +++ b/src/vnet/session/application.h @@ -151,9 +151,6 @@ typedef struct application_ u16 proxied_transports; - /** Pool of listeners for the app */ - app_listener_t *listeners; - /** Preferred tls engine */ u8 tls_engine; @@ -200,6 +197,9 @@ typedef struct app_main_ */ application_t *app_pool; + /** Pool of app listeners */ + app_listener_t *listeners; + /** * Hash table of apps by api client index */ @@ -248,7 +248,7 @@ typedef struct _vnet_app_worker_add_del_args #define APP_NS_INVALID_INDEX ((u32)~0) #define APP_INVALID_SEGMENT_MANAGER_INDEX ((u32) ~0) -app_listener_t *app_listener_get (application_t * app, u32 al_index); +app_listener_t *app_listener_get (u32 al_index); int app_listener_alloc_and_init (application_t * app, session_endpoint_cfg_t * sep, app_listener_t ** listener); @@ -281,7 +281,6 @@ session_handle_t app_listen_session_handle (session_t * ls); * @return pointer to app listener or 0 */ app_listener_t *app_listener_get_w_handle (session_handle_t handle); -app_listener_t *app_listener_get_w_session (session_t * ls); session_t *app_listener_get_session (app_listener_t * al); session_t *app_listener_get_local_session (app_listener_t * al); session_t *app_listener_get_wrk_cl_session (app_listener_t *al, u32 wrk_index); |