Skip to contentSkip to conversation

graph: copy nb_xstats during node clone

PATCH In review Dmitriy Matveichev 1 participant 2 messages Aug 31 – Sep 21

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 graph: copy nb_xstats during node clone

---
 lib/graph/node.c | 1 +
 1 file changed, 1 insertion(+)
lib/graph/node.c +1 -0
index 1fce3e6632..bb39c616de 100644
@@ -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)
Signature · 1 line
2.53.0
#1 lore raw

Hello,
Thomas, my patch was delegated to you. Did you have a chance to look at it? Or maybe it just got lost?

пн, 31 авг. 2026 г. в 11:18, Dmitriy Matveichev <
[email protected]>:

Quoted 22 lines
---
 lib/graph/node.c | 1 +
 1 file changed, 1 insertion(+)
lib/graph/node.c +1 -0
index 1fce3e6632..bb39c616de 100644
@@ -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