diff options
author | Florin Coras <fcoras@cisco.com> | 2019-02-18 13:02:28 -0800 |
---|---|---|
committer | Florin Coras <fcoras@cisco.com> | 2019-02-18 19:06:39 -0800 |
commit | a27a46eaebee7b1d84a6ce998d9c92048b0654b6 (patch) | |
tree | 81c12ad198e83857d49627606044bec870553ef0 /src/vnet/session/application.c | |
parent | 25cfb775e38b1d245e9c2cee75a77086f8f80913 (diff) |
session: move fifo allocation logic to app worker
Change-Id: I1662ec4b5503cb64a8a86a2441842311d959b3a6
Signed-off-by: Florin Coras <fcoras@cisco.com>
Diffstat (limited to 'src/vnet/session/application.c')
-rw-r--r-- | src/vnet/session/application.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/vnet/session/application.c b/src/vnet/session/application.c index ee69cf88c88..a782792f83f 100644 --- a/src/vnet/session/application.c +++ b/src/vnet/session/application.c @@ -191,9 +191,11 @@ app_listener_alloc_and_init (application_t * app, session_handle_t lh; session_type_t st; session_t *ls = 0; + u32 al_index; int rv; app_listener = app_listener_alloc (app); + al_index = app_listener->al_index; st = session_type_from_proto_and_ip (sep->transport_proto, sep->is_ip4); /* @@ -239,8 +241,10 @@ app_listener_alloc_and_init (application_t * app, session_free (ls); return rv; } + ls = session_get_from_handle (lh); + app_listener = app_listener_get (app, al_index); app_listener->session_index = ls->session_index; - ls->al_index = app_listener->al_index; + ls->al_index = al_index; } if (!ll && !ls) |