summaryrefslogtreecommitdiffstats
path: root/src/vnet/session/session_cli.c
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2018-08-12 23:50:53 -0700
committerDamjan Marion <dmarion@me.com>2018-08-24 19:05:25 +0000
commit1553197f9a1a3258b6954adeb9536bbe0191683d (patch)
tree91f26e2e23da3971741238194474d5e5ab0ae792 /src/vnet/session/session_cli.c
parentf8b8586b699bae9e786726f2697c3e642d904c61 (diff)
session: add support for multiple app workers
Refactor session layer to support multiple workers per application. Change-Id: Ie67354688d396449d14bbbb8c56050206e307cd8 Signed-off-by: Florin Coras <fcoras@cisco.com>
Diffstat (limited to 'src/vnet/session/session_cli.c')
-rwxr-xr-xsrc/vnet/session/session_cli.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/vnet/session/session_cli.c b/src/vnet/session/session_cli.c
index 3588bbc2f63..36133523e34 100755
--- a/src/vnet/session/session_cli.c
+++ b/src/vnet/session/session_cli.c
@@ -250,7 +250,7 @@ show_session_command_fn (vlib_main_t * vm, unformat_input_t * input,
if (s->session_state != SESSION_STATE_LISTENING
|| s->session_type != sst)
continue;
- app_name = application_name_from_index (s->app_index);
+ app_name = application_name_from_index (s->app_wrk_index);
vlib_cli_output (vm, "%U%-25v%-10u", format_stream_session, s, 1,
app_name, s->session_index);
vec_free (app_name);
@@ -314,7 +314,8 @@ VLIB_CLI_COMMAND (vlib_cli_show_session_command) =
static int
clear_session (stream_session_t * s)
{
- application_t *server = application_get (s->app_index);
+ app_worker_t *server_wrk = app_worker_get (s->app_wrk_index);
+ application_t *server = application_get (server_wrk->app_index);
server->cb_fns.session_disconnect_callback (s);
return 0;
}