summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2021-05-19 07:58:49 -0700
committerFlorin Coras <florin.coras@gmail.com>2021-05-19 14:53:18 +0000
commitb32af35fb9dc1d6139e6a246f53037497eb0c890 (patch)
treebc0f23d86aebb758933bbfdbba32c5f97d33e6e7 /src
parent188296ae59c7f244da2f0c78657512b933e17fb9 (diff)
session: fix session queue node access on disable
Type: fix Signed-off-by: Florin Coras <fcoras@cisco.com> Change-Id: Ie4e3623e7e00456437fac5fb8f9c9083f1aa2a2e
Diffstat (limited to 'src')
-rw-r--r--src/vnet/session/session.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vnet/session/session.c b/src/vnet/session/session.c
index d6a531e3f84..e82c1d662e2 100644
--- a/src/vnet/session/session.c
+++ b/src/vnet/session/session.c
@@ -1900,9 +1900,9 @@ session_node_enable_disable (u8 is_en)
if (i == 0 && n_vlibs > 1)
{
vlib_node_set_state (vm, session_queue_node.index, mstate);
- session_main_get_worker (0)->state = SESSION_WRK_INTERRUPT;
if (is_en)
{
+ session_main_get_worker (0)->state = SESSION_WRK_INTERRUPT;
vlib_node_set_state (vm, session_queue_process_node.index,
state);
n = vlib_get_node (vm, session_queue_process_node.index);