aboutsummaryrefslogtreecommitdiffstats
path: root/src/vlib
diff options
context:
space:
mode:
authorMonendra Singh Kushwaha <kmonendra@marvell.com>2024-12-20 16:23:56 +0530
committerDamjan Marion <dmarion@0xa5.net>2025-01-08 16:45:26 +0000
commite89c97a3ee1538f3693fcd298831952d5df19ec2 (patch)
treecad6ed88facf680241cf0ee8305a80fd8adfd722 /src/vlib
parent87d82d01db04a9922fdef275b6b9fd7c2d80c746 (diff)
vlib: update input node counts based on state
Type: fix Change-Id: I09497ae8d6a685324f8c7d9e0b3208a3ec465f0e Signed-off-by: Monendra Singh Kushwaha <kmonendra@marvell.com>
Diffstat (limited to 'src/vlib')
-rw-r--r--src/vlib/threads.c7
1 files changed, 7 insertions, 0 deletions
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 */