[PATCH] usertools/dpdk-devbind: fix interface names on FreeBSD
Bruce Richardson
bruce.richardson at intel.com
Tue Nov 3 18:46:01 CET 2026
The interface names on BSD were queried from ifconfig on initial device
scan. Later calls to get additional details used the non-existent linux
paths to query the interface names and so cleared the values. Fix this
by ensuring the interface name gets assigned to the extra details on
BSD.
Fixes: 06d6605f7906 ("usertools/devbind: add basic FreeBSD support")
Cc: stable at dpdk.org
Signed-off-by: Bruce Richardson <bruce.richardson at intel.com>
---
usertools/dpdk-devbind.py | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/usertools/dpdk-devbind.py b/usertools/dpdk-devbind.py
index 15b19acb27..e70bdc23b4 100755
--- a/usertools/dpdk-devbind.py
+++ b/usertools/dpdk-devbind.py
@@ -380,7 +380,11 @@ def get_device_details(devices_type):
# get additional info and add it to existing data
devices[d] = devices[d].copy()
# No need to probe lspci
- devices[d].update(get_pci_device_details(d, False).items())
+ details = get_pci_device_details(d, False)
+ if is_bsd:
+ # on BSD, interface name comes from ifconfig, not sysfs
+ details["Interface"] = devices[d].get("Interface", "")
+ devices[d].update(details.items())
if is_linux and devices_type == 'net':
for _if in ssh_if:
--
2.55.0
More information about the stable
mailing list