From: Monendra Singh Kushwaha Date: Fri, 20 Dec 2024 10:53:56 +0000 (+0530) Subject: vlib: update input node counts based on state X-Git-Tag: v25.06-rc0~48 X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F53%2F42053%2F2;p=vpp.git vlib: update input node counts based on state Type: fix Change-Id: I09497ae8d6a685324f8c7d9e0b3208a3ec465f0e Signed-off-by: Monendra Singh Kushwaha --- 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 */