aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/snort
diff options
context:
space:
mode:
authorSivaprasad Tummala <Sivaprasad.Tummala@intel.com>2021-11-02 11:04:10 +0530
committerDamjan Marion <dmarion@me.com>2021-11-02 22:30:42 +0000
commit543a0fd32b0481f23c7328ac7ec5fc38e60fd19e (patch)
treef29d59cc8b424044c2da0e373cc4af9b3ca65b82 /src/plugins/snort
parenteb416708b152456ab583349b3afb5bb44f11d259 (diff)
snort: fix inconsistent snort input mode
Type: fix Signed-off-by: Sivaprasad Tummala <Sivaprasad.Tummala@intel.com> Change-Id: If42bb9924fa8298b5fac679bc1f2dc1f5b1ad58c
Diffstat (limited to 'src/plugins/snort')
-rw-r--r--src/plugins/snort/main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/snort/main.c b/src/plugins/snort/main.c
index 37b517215bc..157ab8d6fae 100644
--- a/src/plugins/snort/main.c
+++ b/src/plugins/snort/main.c
@@ -386,7 +386,7 @@ snort_instance_create (vlib_main_t *vm, char *name, u8 log2_queue_sz,
for (i = 0; i < vlib_get_n_threads (); i++)
vlib_node_set_state (vlib_get_main_by_index (i), snort_deq_node.index,
- VLIB_NODE_STATE_INTERRUPT);
+ sm->input_mode);
done:
if (err)
@@ -490,6 +490,7 @@ static clib_error_t *
snort_init (vlib_main_t *vm)
{
snort_main_t *sm = &snort_main;
+ sm->input_mode = VLIB_NODE_STATE_INTERRUPT;
sm->instance_by_name = hash_create_string (0, sizeof (uword));
vlib_buffer_pool_t *bp;