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/session.c | |
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/session.c')
-rw-r--r-- | src/vnet/session/session.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/vnet/session/session.c b/src/vnet/session/session.c index 0d2e1b1615e..79681829e50 100644 --- a/src/vnet/session/session.c +++ b/src/vnet/session/session.c @@ -209,7 +209,7 @@ session_alloc (u32 thread_index) clib_memset (s, 0, sizeof (*s)); s->session_index = s - wrk->sessions; s->thread_index = thread_index; - s->app_index = APP_INVALID_INDEX; + s->al_index = APP_INVALID_INDEX; return s; } @@ -318,7 +318,7 @@ session_cleanup_half_open (session_handle_t ho_handle) } /* Migrated transports are no longer half-opens */ transport_cleanup (session_get_transport_proto (ho), - ho->connection_index, ho->app_index /* overloaded */); + ho->connection_index, ho->al_index /* overloaded */); } else if (ho->session_state != SESSION_STATE_TRANSPORT_DELETED) { @@ -410,8 +410,8 @@ session_half_open_migrated_notify (transport_connection_t *tc) return -1; } ho->connection_index = tc->c_index; - /* Overload app index for half-open with new thread */ - ho->app_index = tc->thread_index; + /* Overload al_index for half-open with new thread */ + ho->al_index = tc->thread_index; return 0; } |