From 73507dd1aa1f8ae7573fc73025ed1b9fc0db3532 Mon Sep 17 00:00:00 2001 From: Xiaoming Jiang Date: Thu, 8 Dec 2022 08:08:41 +0000 Subject: stats: fix node name compare error when updating stats segment Type: fix Signed-off-by: Xiaoming Jiang Change-Id: Ib39aa345415720dd05a1b3e12e3e03eac43c5606 --- src/vlib/stats/collector.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/vlib/stats') diff --git a/src/vlib/stats/collector.c b/src/vlib/stats/collector.c index 53fbfa01a22..b23f3df5713 100644 --- a/src/vlib/stats/collector.c +++ b/src/vlib/stats/collector.c @@ -52,7 +52,7 @@ update_node_counters (vlib_stats_segment_t *sm) vec_validate (node_data, n_nodes - 1); for (i = 0; i < n_nodes; i++) - if (vec_is_equal (node_data[i].name, node_dups[0][i]) == 0) + if (vec_is_equal (node_data[i].name, node_dups[0][i]->name) == 0) bmp = clib_bitmap_set (bmp, i, 1); if (bmp) -- cgit 1.2.3-korg