All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] graph: fix xstats of cloned nodes
@ 2026-07-08  8:14 Andrey Yudin
  2026-07-08  9:21 ` Robin Jarry
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Andrey Yudin @ 2026-07-08  8:14 UTC (permalink / raw)
  To: Jerin Jacob, Kiran Kumar K, Nithin Dabilpuram, Zhirun Yan,
	Pavan Nikhilesh, Robin Jarry
  Cc: dev, Andrey Yudin, stable

When cloning a node with xstats enabled, xstat_desc entries are copied
into the rte_node_register structure, but the nb_xstats field is not.

As a result, the cloned node reports zero available xstats,
making xstats unusable.

Copy the nb_xstats field when cloning the node so that cloned nodes
preserve the xstats configuration of the original node.

Fixes: 070db97e017b ("graph: support node xstats")
Cc: stable@dpdk.org
Signed-off-by: Andrey Yudin <Andrey.Yudin@infotecs.ru>
---
 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.47.3


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] graph: fix xstats of cloned nodes
  2026-07-08  8:14 [PATCH] graph: fix xstats of cloned nodes Andrey Yudin
@ 2026-07-08  9:21 ` Robin Jarry
  2026-07-15  6:32 ` kirankumark
  2026-07-22 18:20 ` Stephen Hemminger
  2 siblings, 0 replies; 4+ messages in thread
From: Robin Jarry @ 2026-07-08  9:21 UTC (permalink / raw)
  To: Andrey Yudin, Jerin Jacob, Kiran Kumar K, Nithin Dabilpuram,
	Zhirun Yan, Pavan Nikhilesh
  Cc: dev, stable

Andrey Yudin, Jul 08, 2026 at 10:14:
> When cloning a node with xstats enabled, xstat_desc entries are copied
> into the rte_node_register structure, but the nb_xstats field is not.
>
> As a result, the cloned node reports zero available xstats,
> making xstats unusable.
>
> Copy the nb_xstats field when cloning the node so that cloned nodes
> preserve the xstats configuration of the original node.
>
> Fixes: 070db97e017b ("graph: support node xstats")
> Cc: stable@dpdk.org
> Signed-off-by: Andrey Yudin <Andrey.Yudin@infotecs.ru>
> ---
>  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)

Reviewed-by: Robin Jarry <rjarry@redhat.com>


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] graph: fix xstats of cloned nodes
  2026-07-08  8:14 [PATCH] graph: fix xstats of cloned nodes Andrey Yudin
  2026-07-08  9:21 ` Robin Jarry
@ 2026-07-15  6:32 ` kirankumark
  2026-07-22 18:20 ` Stephen Hemminger
  2 siblings, 0 replies; 4+ messages in thread
From: kirankumark @ 2026-07-15  6:32 UTC (permalink / raw)
  To: rjarry
  Cc: Andrey.Yudin, dev, jerinj, kirankumark, ndabilpuram, pbhagavatula,
	stable, yanzhirun_163

On Wed, Jul 08, 2026 at 11:14:19AM +0300, Andrey Yudin wrote:
> When cloning a node with xstats enabled, xstat_desc entries are copied
> into the rte_node_register structure, but the nb_xstats field is not.
>
> As a result, the cloned node reports zero available xstats,
> making xstats unusable.
>
> Copy the nb_xstats field when cloning the node so that cloned nodes
> preserve the xstats configuration of the original node.
>
> Fixes: 070db97e017b ("graph: support node xstats")
> Cc: stable@dpdk.org
> Signed-off-by: Andrey Yudin <Andrey.Yudin@infotecs.ru>
> ---
>  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.47.3
>

Acked-by: Kiran Kumar Kokkilagadda <kirankumark@marvell.com>



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] graph: fix xstats of cloned nodes
  2026-07-08  8:14 [PATCH] graph: fix xstats of cloned nodes Andrey Yudin
  2026-07-08  9:21 ` Robin Jarry
  2026-07-15  6:32 ` kirankumark
@ 2026-07-22 18:20 ` Stephen Hemminger
  2 siblings, 0 replies; 4+ messages in thread
From: Stephen Hemminger @ 2026-07-22 18:20 UTC (permalink / raw)
  To: Andrey Yudin
  Cc: Jerin Jacob, Kiran Kumar K, Nithin Dabilpuram, Zhirun Yan,
	Pavan Nikhilesh, Robin Jarry, dev, stable

On Wed, 8 Jul 2026 11:14:19 +0300
Andrey Yudin <Andrey.Yudin@infotecs.ru> wrote:

> When cloning a node with xstats enabled, xstat_desc entries are copied
> into the rte_node_register structure, but the nb_xstats field is not.
> 
> As a result, the cloned node reports zero available xstats,
> making xstats unusable.
> 
> Copy the nb_xstats field when cloning the node so that cloned nodes
> preserve the xstats configuration of the original node.
> 
> Fixes: 070db97e017b ("graph: support node xstats")
> Cc: stable@dpdk.org
> Signed-off-by: Andrey Yudin <Andrey.Yudin@infotecs.ru>
> ---

This patch is technically correct, and I have no issues with the code itself.

However, the submitter's mail domain (infotecs.ru) belongs to JSC
InfoTeCS, which is on the EU consolidated sanctions list. Whether a
contribution from a sanctioned entity can be accepted is a legal
question, and not one a maintainer has the authority to decide.

Holding off on merging this patch until there is direction from LF
legal and/or the DPDK governing board.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-07-22 18:20 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-08  8:14 [PATCH] graph: fix xstats of cloned nodes Andrey Yudin
2026-07-08  9:21 ` Robin Jarry
2026-07-15  6:32 ` kirankumark
2026-07-22 18:20 ` Stephen Hemminger

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.