From e89c97a3ee1538f3693fcd298831952d5df19ec2 Mon Sep 17 00:00:00 2001 From: Monendra Singh Kushwaha Date: Fri, 20 Dec 2024 16:23:56 +0530 Subject: vlib: update input node counts based on state Type: fix Change-Id: I09497ae8d6a685324f8c7d9e0b3208a3ec465f0e Signed-off-by: Monendra Singh Kushwaha --- src/vlib/threads.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/vlib/threads.c') diff --git a/src/vlib/threads.c b/src/vlib/threads.c index ef2c5616f21..f3fcb4043a0 100644 --- a/src/vlib/threads.c +++ b/src/vlib/threads.c @@ -1070,6 +1070,13 @@ vlib_worker_thread_node_refork (void) VLIB_NODE_RUNTIME_DATA_SIZE); } + for (j = vec_len (old_rt); + j < vec_len (nm_clone->nodes_by_type[VLIB_NODE_TYPE_INPUT]); j++) + { + rt = &nm_clone->nodes_by_type[VLIB_NODE_TYPE_INPUT][j]; + nm_clone->input_node_counts_by_state[rt->state] += 1; + } + vec_free (old_rt); /* re-clone pre-input nodes */ -- cgit