patch 'examples/ethtool: fix error message about ports limit' has been queued to stable release 23.11.7
Shani Peretz
shperetz at nvidia.com
Tue Mar 31 08:25:03 CEST 2026
Hi,
FYI, your patch has been queued to stable release 23.11.7
Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet.
It will be pushed if I get no objections before 04/05/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/shanipr/dpdk-stable
This queued commit can be viewed at:
https://github.com/shanipr/dpdk-stable/commit/d357bf1f7a28c36dacfe29eb3692172ecd083f0d
Thanks.
Shani
---
>From d357bf1f7a28c36dacfe29eb3692172ecd083f0d Mon Sep 17 00:00:00 2001
From: Thomas Monjalon <thomas at monjalon.net>
Date: Wed, 28 Jan 2026 11:33:50 +0100
Subject: [PATCH] examples/ethtool: fix error message about ports limit
[ upstream commit a3df13c880641c6eafade0f21580e35379a065e6 ]
The error message about the number of ports was swapping
the desired and maximum number of ports.
Fixes: bda68ab9d1e7 ("examples/ethtool: add user-space ethtool sample application")
Signed-off-by: Thomas Monjalon <thomas at monjalon.net>
Acked-by: Bruce Richardson <bruce.richardson at intel.com>
---
examples/ethtool/ethtool-app/main.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/examples/ethtool/ethtool-app/main.c b/examples/ethtool/ethtool-app/main.c
index d380f69cea..b6bbae70d2 100644
--- a/examples/ethtool/ethtool-app/main.c
+++ b/examples/ethtool/ethtool-app/main.c
@@ -288,9 +288,7 @@ int main(int argc, char **argv)
if (cnt_ports == 0)
rte_exit(EXIT_FAILURE, "No available NIC ports!\n");
if (cnt_ports > MAX_PORTS) {
- printf("Info: Using only %i of %i ports\n",
- cnt_ports, MAX_PORTS
- );
+ printf("Info: Using only %i of %i ports\n", MAX_PORTS, cnt_ports);
cnt_ports = MAX_PORTS;
}
--
2.43.0
---
Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- - 2026-03-31 00:32:37.649161188 +0300
+++ 0104-examples-ethtool-fix-error-message-about-ports-limit.patch 2026-03-31 00:32:29.825405000 +0300
@@ -1 +1 @@
-From a3df13c880641c6eafade0f21580e35379a065e6 Mon Sep 17 00:00:00 2001
+From d357bf1f7a28c36dacfe29eb3692172ecd083f0d Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit a3df13c880641c6eafade0f21580e35379a065e6 ]
+
@@ -10 +11,0 @@
-Cc: stable at dpdk.org
More information about the stable
mailing list