[PATCH] graph: copy nb_xstats during node clone

Дмитрий matveichev.dmitriy at gmail.com
Mon Sep 21 08:29:05 CEST 2026


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 <
matveichev.dmitriy at gmail.com>:

> Signed-off-by: Dmitriy Matveichev <matveichev.dmitriy at 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mails.dpdk.org/archives/dev/attachments/20260921/99e71e26/attachment.htm>


More information about the dev mailing list