patch 'net/null: fix Tx statistics accumulation' has been queued to stable release 25.11.1
Kevin Traynor
ktraynor at redhat.com
Thu Feb 26 14:09:23 CET 2026
Hi,
FYI, your patch has been queued to stable release 25.11.1
Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet.
It will be pushed if I get no objections before 03/02/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/kevintraynor/dpdk-stable
This queued commit can be viewed at:
https://github.com/kevintraynor/dpdk-stable/commit/67aac277cc9b761d7915f17ba8bda90e26839845
Thanks.
Kevin
---
>From 67aac277cc9b761d7915f17ba8bda90e26839845 Mon Sep 17 00:00:00 2001
From: Zhanibek Bakin <zhanibek.bakin at gmail.com>
Date: Thu, 29 Jan 2026 14:03:12 +0500
Subject: [PATCH] net/null: fix Tx statistics accumulation
[ upstream commit db55352a153328fb8dfc4d74c0578a7f1e1bd987 ]
The eth_stats_get() function incorrectly uses assignment (=) instead
of accumulation (+=) for opackets and obytes in the TX queue loop.
This causes only the last TX queue's statistics to be reported,
while the RX side correctly uses +=.
Fixes: 31326ce7f151 ("net/null: count all queues")
Signed-off-by: Zhanibek Bakin <zhanibek.bakin at gmail.com>
---
.mailmap | 1 +
drivers/net/null/rte_eth_null.c | 4 ++--
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/.mailmap b/.mailmap
index 86df6f14b1..fdfe1814ee 100644
--- a/.mailmap
+++ b/.mailmap
@@ -1902,4 +1902,5 @@ Zerun Fu <zerun.fu at corigine.com>
Zhangfei Gao <zhangfei.gao at linaro.org>
Zhangkun <zhangk.zhangkun at huawei.com>
+Zhanibek Bakin <zhanibek.bakin at gmail.com>
Zhaochen Zhan <zhaochen.zhan at intel.com>
Zhaoyan Chen <zhaoyan.chen at intel.com>
diff --git a/drivers/net/null/rte_eth_null.c b/drivers/net/null/rte_eth_null.c
index 46e7e7bd8c..7fba3a661b 100644
--- a/drivers/net/null/rte_eth_null.c
+++ b/drivers/net/null/rte_eth_null.c
@@ -346,6 +346,6 @@ eth_stats_get(struct rte_eth_dev *dev, struct rte_eth_stats *stats,
bytes = rte_atomic_load_explicit(&q->tx_bytes, rte_memory_order_relaxed);
- stats->opackets = pkts;
- stats->obytes = bytes;
+ stats->opackets += pkts;
+ stats->obytes += bytes;
if (qstats != NULL && i < RTE_ETHDEV_QUEUE_STAT_CNTRS) {
--
2.53.0
---
Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- - 2026-02-26 10:16:50.300565088 +0000
+++ 0081-net-null-fix-Tx-statistics-accumulation.patch 2026-02-26 10:16:47.023459552 +0000
@@ -1 +1 @@
-From db55352a153328fb8dfc4d74c0578a7f1e1bd987 Mon Sep 17 00:00:00 2001
+From 67aac277cc9b761d7915f17ba8bda90e26839845 Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit db55352a153328fb8dfc4d74c0578a7f1e1bd987 ]
+
@@ -12 +13,0 @@
-Cc: stable at dpdk.org
@@ -21 +22 @@
-index fc53ed2a55..cdaa471715 100644
+index 86df6f14b1..fdfe1814ee 100644
@@ -24 +25 @@
-@@ -1904,4 +1904,5 @@ Zerun Fu <zerun.fu at corigine.com>
+@@ -1902,4 +1902,5 @@ Zerun Fu <zerun.fu at corigine.com>
More information about the stable
mailing list