patch 'app/procinfo: fix module EEPROM dump of multiple ports' has been queued to stable release 24.11.9
luca.boccassi at gmail.com
luca.boccassi at gmail.com
Mon Nov 16 23:52:35 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 11/18/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/69aaebd0a5acec3563841d3125bbca7c6664b78c
Thanks.
Luca Boccassi
---
>From 69aaebd0a5acec3563841d3125bbca7c6664b78c Mon Sep 17 00:00:00 2001
From: Roman Khromenok <roma55592 at yandex.ru>
Date: Thu, 29 Oct 2026 20:20:32 +0200
Subject: [PATCH] app/procinfo: fix module EEPROM dump of multiple ports
[ upstream commit 8b10621b79e2a33ad32944177d4b5ad675f8455d ]
The --show-module-eeprom option stopped at the first port whose
module EEPROM could not be read, so a port without a module, or
a driver without the operation, hid the modules of all the next
ports. Report the error and go on with the next port, with the
port number in the message since several ports can now fail.
The EEPROM was also read into a fixed size buffer with the length
reported by the driver, without checking it. Skip the port if the
length does not fit the buffer.
Fixes: 0084463ea004 ("app/procinfo: dump module EEPROM info")
Signed-off-by: Roman Khromenok <roma55592 at yandex.ru>
---
app/proc-info/main.c | 18 ++++++++++++------
1 file changed, 12 insertions(+), 6 deletions(-)
diff --git a/app/proc-info/main.c b/app/proc-info/main.c
index 5a092b127b..7faf240c48 100644
--- a/app/proc-info/main.c
+++ b/app/proc-info/main.c
@@ -1878,9 +1878,15 @@ show_module_eeprom_info(void)
ret = rte_eth_dev_get_module_info(i, &module_info);
if (ret != 0) {
- fprintf(stderr, "Module EEPROM information read error: %s\n",
- strerror(-ret));
- return;
+ fprintf(stderr, "Port %u module EEPROM information read error: %s\n",
+ i, strerror(-ret));
+ continue;
+ }
+
+ if (module_info.eeprom_len > sizeof(bytes_eeprom)) {
+ fprintf(stderr, "Port %u module EEPROM too long: %u bytes\n",
+ i, module_info.eeprom_len);
+ continue;
}
eeprom_info.offset = 0;
@@ -1889,9 +1895,9 @@ show_module_eeprom_info(void)
ret = rte_eth_dev_get_module_eeprom(i, &eeprom_info);
if (ret != 0) {
- fprintf(stderr, "Module EEPROM read error: %s\n",
- strerror(-ret));
- return;
+ fprintf(stderr, "Port %u module EEPROM read error: %s\n",
+ i, strerror(-ret));
+ continue;
}
rte_hexdump(stdout, "hexdump", eeprom_info.data,
--
2.47.3
---
Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- - 2026-11-16 22:52:19.678251002 +0000
+++ 0081-app-procinfo-fix-module-EEPROM-dump-of-multiple-port.patch 2026-11-16 22:52:16.540234862 +0000
@@ -1 +1 @@
-From 8b10621b79e2a33ad32944177d4b5ad675f8455d Mon Sep 17 00:00:00 2001
+From 69aaebd0a5acec3563841d3125bbca7c6664b78c Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit 8b10621b79e2a33ad32944177d4b5ad675f8455d ]
+
@@ -17 +18,0 @@
-Cc: stable at dpdk.org
@@ -25 +26 @@
-index 9c22fb8f01..d918a0a3c8 100644
+index 5a092b127b..7faf240c48 100644
@@ -28 +29 @@
-@@ -1869,9 +1869,15 @@ show_module_eeprom_info(void)
+@@ -1878,9 +1878,15 @@ show_module_eeprom_info(void)
@@ -47 +48 @@
-@@ -1880,9 +1886,9 @@ show_module_eeprom_info(void)
+@@ -1889,9 +1895,9 @@ show_module_eeprom_info(void)
More information about the stable
mailing list