* [PATCH] graph: copy nb_xstats during node clone
@ 2026-08-31 8:18 Dmitriy Matveichev
0 siblings, 0 replies; only message in thread
From: Dmitriy Matveichev @ 2026-08-31 8:18 UTC (permalink / raw)
To: erinj, kirankumark; +Cc: dev, Dmitriy Matveichev
Signed-off-by: Dmitriy Matveichev <matveichev.dmitriy@gmail.com>
---
lib/graph/node.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/lib/graph/node.c b/lib/graph/node.c
index 1fce3e6632..bb39c616de 100644
--- a/lib/graph/node.c
+++ b/lib/graph/node.c
@@ -208,6 +208,7 @@ node_clone(struct node *node, const char *name)
goto free;
}
+ reg->xstats->nb_xstats = node->xstats->nb_xstats;
for (i = 0; i < node->xstats->nb_xstats; i++)
if (rte_strscpy(reg->xstats->xstat_desc[i], node->xstats->xstat_desc[i],
RTE_NODE_XSTAT_DESC_SIZE) < 0)
--
2.53.0
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-08-31 8:18 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-31 8:18 [PATCH] graph: copy nb_xstats during node clone Dmitriy Matveichev
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox