session: fix show cli with closed session
Type: fix Change-Id: Ifb6ead644c0273b84a5647f7923053f1db7c5a76 Signed-off-by: Florin Coras <fcoras@cisco.com> (cherry picked from commit 2d0b2bbb97d57cb4bac30e4f3138b70c277aee47)
This commit is contained in:
Florin Coras
committed by
Andrew Yourtchenko
parent
b5a0108acf
commit
066ebabc5a
@ -252,7 +252,7 @@ static void
|
||||
session_cli_show_all_sessions (vlib_main_t * vm, int verbose)
|
||||
{
|
||||
session_main_t *smm = &session_main;
|
||||
u32 n_closed = 0, thread_index;
|
||||
u32 n_closed, thread_index;
|
||||
session_t *pool, *s;
|
||||
|
||||
for (thread_index = 0; thread_index < vec_len (smm->wrk); thread_index++)
|
||||
@ -285,6 +285,8 @@ session_cli_show_all_sessions (vlib_main_t * vm, int verbose)
|
||||
thread_index ? "\n" : "",
|
||||
"Connection", "State", "Rx-f", "Tx-f");
|
||||
|
||||
n_closed = 0;
|
||||
|
||||
/* *INDENT-OFF* */
|
||||
pool_foreach(s, pool, ({
|
||||
if (s->session_state >= SESSION_STATE_TRANSPORT_DELETED)
|
||||
|
Reference in New Issue
Block a user