patch 'dts: fix port info getter when not found' has been queued to stable release 25.11.3

Kevin Traynor ktraynor at redhat.com
Thu Jul 30 11:16:06 CEST 2026


Hi,

FYI, your patch has been queued to stable release 25.11.3

Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet.
It will be pushed if I get no objections before 08/04/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/73c8f57ca36eccba3c140f8810b05f9b03f9e808

Thanks.

Kevin

---
>From 73c8f57ca36eccba3c140f8810b05f9b03f9e808 Mon Sep 17 00:00:00 2001
From: Riley Fletcher <rileyf at linux.ibm.com>
Date: Wed, 22 Apr 2026 13:35:24 -0500
Subject: [PATCH] dts: fix port info getter when not found

[ upstream commit 44602a98f8b91fe941a4406c02fdd74a7a4aef0f ]

In DTS, when providing an nonexisting PCI address, a ConfigurationError
should be thrown. Instead, because the next() is not given a default
None, it instead hits a StopIteration error, which is harder to debug.

Fixes: 0a210d88c36 ("dts: improve port model")

Signed-off-by: Riley Fletcher <rileyf at linux.ibm.com>
Reviewed-by: Luca Vizzarro <luca.vizzarro at arm.com>
---
 dts/framework/testbed_model/linux_session.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dts/framework/testbed_model/linux_session.py b/dts/framework/testbed_model/linux_session.py
index 711d4d97c3..5cb2e2ff7a 100644
--- a/dts/framework/testbed_model/linux_session.py
+++ b/dts/framework/testbed_model/linux_session.py
@@ -168,5 +168,5 @@ class LinuxSession(PosixSession):
         """
         bus_info = f"pci@{pci_address}"
-        port = next(port for port in self._lshw_net_info if port.get("businfo") == bus_info)
+        port = next((port for port in self._lshw_net_info if port.get("businfo") == bus_info), None)
         if port is None:
             raise ConfigurationError(f"Port {pci_address} could not be found on the node.")
-- 
2.55.0

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2026-07-30 10:16:02.295817046 +0100
+++ 0027-dts-fix-port-info-getter-when-not-found.patch	2026-07-30 10:16:01.467304387 +0100
@@ -1 +1 @@
-From 44602a98f8b91fe941a4406c02fdd74a7a4aef0f Mon Sep 17 00:00:00 2001
+From 73c8f57ca36eccba3c140f8810b05f9b03f9e808 Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit 44602a98f8b91fe941a4406c02fdd74a7a4aef0f ]
+
@@ -11 +12,0 @@
-Cc: stable at dpdk.org
@@ -20 +21 @@
-index 30c89ad70d..3a6e97974b 100644
+index 711d4d97c3..5cb2e2ff7a 100644
@@ -23 +24 @@
-@@ -169,5 +169,5 @@ class LinuxSession(PosixSession):
+@@ -168,5 +168,5 @@ class LinuxSession(PosixSession):



More information about the stable mailing list