summaryrefslogtreecommitdiff
path: root/usertools
diff options
context:
space:
mode:
authorAnatoly Burakov <anatoly.burakov@intel.com>2018-01-24 10:26:12 +0000
committerThomas Monjalon <thomas@monjalon.net>2018-02-06 02:18:45 +0100
commitc76a10ec1531b3e5d182b8e9bbd27c48365f91aa (patch)
treeb2f44c0a6d211a9df341e23221172f73b48c0d59 /usertools
parent02e157e4a84e437bc4bfd542bab7f51772493fe7 (diff)
downloaddpdk-c76a10ec1531b3e5d182b8e9bbd27c48365f91aa.zip
dpdk-c76a10ec1531b3e5d182b8e9bbd27c48365f91aa.tar.gz
dpdk-c76a10ec1531b3e5d182b8e9bbd27c48365f91aa.tar.xz
usertools/devbind: fix kernel module reporting
lspci reports kernel modules in "Module" string, but devbind expects it to be "Module_str". Fix it up similar to how we fix up "Driver" to be "Driver_str". Fixes: c3ce205d5729 ("usertools: optimize lspci invocation") Cc: stable@dpdk.org Signed-off-by: Anatoly Burakov <anatoly.burakov@intel.com>
Diffstat (limited to 'usertools')
-rwxr-xr-xusertools/dpdk-devbind.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/usertools/dpdk-devbind.py b/usertools/dpdk-devbind.py
index 955e984..18d9386 100755
--- a/usertools/dpdk-devbind.py
+++ b/usertools/dpdk-devbind.py
@@ -216,6 +216,8 @@ def get_device_details(devices_type):
# of dictionary key names
if "Driver" in dev.keys():
dev["Driver_str"] = dev.pop("Driver")
+ if "Module" in dev.keys():
+ dev["Module_str"] = dev.pop("Module")
# use dict to make copy of dev
devices[dev["Slot"]] = dict(dev)
# Clear previous device's data