patch 'ethdev: fix hiding zero-valued registers in telemetry' has been queued to stable release 25.11.5
Kevin Traynor
ktraynor at redhat.com
Thu Dec 3 14:04:50 CET 2026
Hi,
FYI, your patch has been queued to stable release 25.11.5
Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet.
It will be pushed if I get no objections before 12/08/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/03b56bf86d714257d9bd75c1afb03f08588087d1
Thanks.
Kevin
---
>From 03b56bf86d714257d9bd75c1afb03f08588087d1 Mon Sep 17 00:00:00 2001
From: Chengwen Feng <fengchengwen at huawei.com>
Date: Fri, 30 Oct 2026 11:41:57 +0800
Subject: [PATCH] ethdev: fix hiding zero-valued registers in telemetry
[ upstream commit 819c924f58f05939dc7212185e5f02dc9e39e6c0 ]
When the "hide_zero" parameter is parsed successfully in the ethdev
telemetry regs command, the else branch unconditionally resets
hide_zero back to false, discarding the parsed value. As a result the
hide_zero option is silently ignored.
Remove the unnecessary reset so the parsed hide_zero value is retained
and passed to eth_dev_get_port_regs().
Fixes: ba4d57bd849d ("ethdev: support hide zero in registers telemetry")
Signed-off-by: Chengwen Feng <fengchengwen at huawei.com>
Acked-by: Bruce Richardson <bruce.richardson at intel.com>
---
lib/ethdev/rte_ethdev_telemetry.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/lib/ethdev/rte_ethdev_telemetry.c b/lib/ethdev/rte_ethdev_telemetry.c
index ca7f4681c9..caa7b33e1e 100644
--- a/lib/ethdev/rte_ethdev_telemetry.c
+++ b/lib/ethdev/rte_ethdev_telemetry.c
@@ -1516,11 +1516,9 @@ eth_dev_handle_port_regs(const char *cmd __rte_unused,
filter_val = rte_kvargs_get(kvlist, "filter");
ret = rte_kvargs_process(kvlist, "hide_zero", eth_dev_parse_hide_zero, &hide_zero);
- if (kvlist == NULL || (filter_val != NULL && strlen(filter_val) == 0) || ret != 0) {
+ if (kvlist == NULL || (filter_val != NULL && strlen(filter_val) == 0) || ret != 0)
RTE_ETHDEV_LOG_LINE(NOTICE,
"Unknown extra parameters passed to ethdev telemetry command, ignoring");
- } else {
+ else
filter = (filter_val != NULL) ? strdup(filter_val) : NULL;
- hide_zero = false;
- }
rte_kvargs_free(kvlist);
}
--
2.56.1
---
Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- - 2026-12-03 12:52:49.495033669 +0000
+++ 0364-ethdev-fix-hiding-zero-valued-registers-in-telemetry.patch 2026-12-03 12:52:39.281806599 +0000
@@ -1 +1 @@
-From 819c924f58f05939dc7212185e5f02dc9e39e6c0 Mon Sep 17 00:00:00 2001
+From 03b56bf86d714257d9bd75c1afb03f08588087d1 Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit 819c924f58f05939dc7212185e5f02dc9e39e6c0 ]
+
@@ -15 +16,0 @@
-Cc: stable at dpdk.org
More information about the stable
mailing list