patch 'net/mvpp2: fix out-of-range Tx queue stats write' has been queued to stable release 24.11.9
luca.boccassi at gmail.com
luca.boccassi at gmail.com
Tue Oct 27 12:48:38 CET 2026
Hi,
FYI, your patch has been queued to stable release 24.11.9
Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet.
It will be pushed if I get no objections before 10/29/26. So please
shout if anyone has objections.
Also note that after the patch there's a diff of the upstream commit vs the
patch applied to the branch. This will indicate if there was any rebasing
needed to apply to the stable branch. If there were code changes for rebasing
(ie: not only metadata diffs), please double check that the rebase was
correctly done.
Queued patches are on a temporary branch at:
https://github.com/bluca/dpdk-stable
This queued commit can be viewed at:
https://github.com/bluca/dpdk-stable/commit/5878d4d4efb57e6e7769d117e82ba103b32c728a
Thanks.
Luca Boccassi
---
>From 5878d4d4efb57e6e7769d117e82ba103b32c728a Mon Sep 17 00:00:00 2001
From: Stephen Hemminger <stephen at networkplumber.org>
Date: Fri, 14 Aug 2026 12:46:08 -0700
Subject: [PATCH] net/mvpp2: fix out-of-range Tx queue stats write
[ upstream commit f28e4646464a84d4cc61f07ac39a5aadcf28e9e9 ]
The Tx queue stats loop logs an error when the queue index is out of
range, then writes q_opackets[idx] and q_obytes[idx] anyway. The Rx loop
skips the queue in this case.
Add the missing continue. Latent today since MRVL_PP2_TXQ_MAX (8) is
below RTE_ETHDEV_QUEUE_STAT_CNTRS (16), but the check is wrong.
Fixes: bdffe0c70a0b ("net/mrvl: support basic stats")
Signed-off-by: Stephen Hemminger <stephen at networkplumber.org>
---
drivers/net/mvpp2/mrvl_ethdev.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/net/mvpp2/mrvl_ethdev.c b/drivers/net/mvpp2/mrvl_ethdev.c
index 4eadd28133e..766b470bad8 100644
--- a/drivers/net/mvpp2/mrvl_ethdev.c
+++ b/drivers/net/mvpp2/mrvl_ethdev.c
@@ -1543,6 +1543,7 @@ mrvl_stats_get(struct rte_eth_dev *dev, struct rte_eth_stats *stats)
MRVL_LOG(ERR,
"tx queue %d stats out of range (0 - %d)",
idx, RTE_ETHDEV_QUEUE_STAT_CNTRS - 1);
+ continue;
}
ret = pp2_ppio_outq_get_statistics(priv->ppio, idx,
--
2.47.3
---
Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- - 2026-10-27 11:43:54.686506714 +0000
+++ 0024-net-mvpp2-fix-out-of-range-Tx-queue-stats-write.patch 2026-10-27 11:43:53.518059572 +0000
@@ -1 +1 @@
-From f28e4646464a84d4cc61f07ac39a5aadcf28e9e9 Mon Sep 17 00:00:00 2001
+From 5878d4d4efb57e6e7769d117e82ba103b32c728a Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit f28e4646464a84d4cc61f07ac39a5aadcf28e9e9 ]
+
@@ -14 +15,0 @@
-Cc: stable at dpdk.org
@@ -22 +23 @@
-index 1074092d43..bc947ff52e 100644
+index 4eadd28133e..766b470bad8 100644
@@ -25 +26 @@
-@@ -1546,6 +1546,7 @@ mrvl_stats_get(struct rte_eth_dev *dev, struct rte_eth_stats *stats,
+@@ -1543,6 +1543,7 @@ mrvl_stats_get(struct rte_eth_dev *dev, struct rte_eth_stats *stats)
More information about the stable
mailing list