patch 'usertools/pmdinfo: fix search for PMD info string' has been queued to stable release 23.11.7

Shani Peretz shperetz at nvidia.com
Wed Apr 15 11:59:54 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/19/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/0e4d00b66893f6d7fa3e48f58a3dccb6a50822ea

Thanks.

Shani

---
>From 0e4d00b66893f6d7fa3e48f58a3dccb6a50822ea Mon Sep 17 00:00:00 2001
From: Bruce Richardson <bruce.richardson at intel.com>
Date: Tue, 17 Feb 2026 12:48:44 +0000
Subject: [PATCH] usertools/pmdinfo: fix search for PMD info string

[ upstream commit 93389614bfe67e832ccbc379eb0a76c5041b3a29 ]

The PMD_INFO_STRING constant string is not guaranteed to appear in the
output binary immediately after an unprintable character. Because of
this, in some cases the information for a driver could be missed by the
PMD info script as it only checks for the prefix at the start of strings
that it finds. Change the script to use "s.find()" rather than
"s.startswith()" to fix this issue.

Fixes: 0ce3cf4afd04 ("usertools/pmdinfo: rewrite simpler script")

Signed-off-by: Bruce Richardson <bruce.richardson at intel.com>
Acked-by: David Marchand <david.marchand at redhat.com>
Acked-by: Robin Jarry <rjarry at redhat.com>
---
 usertools/dpdk-pmdinfo.py | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/usertools/dpdk-pmdinfo.py b/usertools/dpdk-pmdinfo.py
index 2c728de7b8..099a5f5997 100755
--- a/usertools/dpdk-pmdinfo.py
+++ b/usertools/dpdk-pmdinfo.py
@@ -213,8 +213,9 @@ def find_strings(buf: bytes, prefix: str) -> Iterator[str]:
             if b == 0:
                 # end of string
                 s = view[start:i].tobytes().decode("ascii")
-                if s.startswith(prefix):
-                    yield s[len(prefix) :]
+                idx = s.find(prefix)
+                if idx >= 0:
+                    yield s[idx + len(prefix) :]
             # There can be byte sequences where a non-printable byte
             # follows a printable one. Ignore that.
             start = None
-- 
2.43.0

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2026-04-14 14:44:33.866997358 +0300
+++ 0053-usertools-pmdinfo-fix-search-for-PMD-info-string.patch	2026-04-14 14:44:28.653517000 +0300
@@ -1 +1 @@
-From 93389614bfe67e832ccbc379eb0a76c5041b3a29 Mon Sep 17 00:00:00 2001
+From 0e4d00b66893f6d7fa3e48f58a3dccb6a50822ea Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit 93389614bfe67e832ccbc379eb0a76c5041b3a29 ]
+
@@ -14 +15,0 @@
-Cc: stable at dpdk.org
@@ -24 +25 @@
-index 9251c69db9..a4913f2209 100755
+index 2c728de7b8..099a5f5997 100755
@@ -27 +28 @@
-@@ -221,8 +221,9 @@ def find_strings(buf: bytes, prefix: str) -> Iterator[str]:
+@@ -213,8 +213,9 @@ def find_strings(buf: bytes, prefix: str) -> Iterator[str]:


More information about the stable mailing list