summaryrefslogtreecommitdiffstats
path: root/src/vnet/session/application.c
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2019-03-06 12:04:24 -0800
committerDave Barach <openvpp@barachs.net>2019-03-08 20:03:10 +0000
commit11e2cf5f1a37965001efee6a921a3fb2aabcddf6 (patch)
tree2b137a569e592c7d0870a3223f5ad59642a4300b /src/vnet/session/application.c
parent5d704aea534a88f6630c803d858bc01a58b4052d (diff)
session: reorganize session fields
Change-Id: I7f3b015ea6750c9773e4285bb63b0d44fa2177b9 Signed-off-by: Florin Coras <fcoras@cisco.com>
Diffstat (limited to 'src/vnet/session/application.c')
-rw-r--r--src/vnet/session/application.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/vnet/session/application.c b/src/vnet/session/application.c
index 37eb1cb2d18..f6fcc4f85b7 100644
--- a/src/vnet/session/application.c
+++ b/src/vnet/session/application.c
@@ -282,10 +282,9 @@ app_listener_cleanup (app_listener_t * al)
app_listener_free (app, al);
}
-app_worker_t *
-app_listener_select_worker (app_listener_t * al)
+static app_worker_t *
+app_listener_select_worker (application_t * app, app_listener_t * al)
{
- application_t *app;
u32 wrk_index;
app = application_get (al->app_index);
@@ -696,10 +695,12 @@ application_n_workers (application_t * app)
app_worker_t *
application_listener_select_worker (session_t * ls)
{
+ application_t *app;
app_listener_t *al;
- al = app_listener_get_w_session (ls);
- return app_listener_select_worker (al);
+ app = application_get (ls->app_index);
+ al = app_listener_get (app, ls->al_index);
+ return app_listener_select_worker (app, al);
}
int