From 543a0fd32b0481f23c7328ac7ec5fc38e60fd19e Mon Sep 17 00:00:00 2001 From: Sivaprasad Tummala Date: Tue, 2 Nov 2021 11:04:10 +0530 Subject: snort: fix inconsistent snort input mode Type: fix Signed-off-by: Sivaprasad Tummala Change-Id: If42bb9924fa8298b5fac679bc1f2dc1f5b1ad58c --- src/plugins/snort/main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/plugins/snort') 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; -- cgit 1.2.3-korg