summaryrefslogtreecommitdiff
path: root/usertools
diff options
context:
space:
mode:
authorOmri Mor <omrimor2@illinois.edu>2017-10-06 16:38:38 -0500
committerThomas Monjalon <thomas@monjalon.net>2017-11-07 23:34:38 +0100
commit8fab26f8ee80ed7dff84cd90d343e5265a6128d1 (patch)
tree3cd73aece118446b85ba6992c4aa5ac7389cc4e8 /usertools
parent3b29f60f2d584d5086b735e0a6fab518a17eaa1e (diff)
downloaddpdk-next-eventdev-8fab26f8ee80ed7dff84cd90d343e5265a6128d1.zip
dpdk-next-eventdev-8fab26f8ee80ed7dff84cd90d343e5265a6128d1.tar.gz
dpdk-next-eventdev-8fab26f8ee80ed7dff84cd90d343e5265a6128d1.tar.xz
usertools: fix device binding with python 3
When using Python 3, dpdk-devbind.py fails to detect modules other than igb_uio. Fixes: bb9f408550d1 ("tools: support binding to built-in kernel modules") Signed-off-by: Omri Mor <omrimor2@illinois.edu>
Diffstat (limited to 'usertools')
-rwxr-xr-xusertools/dpdk-devbind.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/usertools/dpdk-devbind.py b/usertools/dpdk-devbind.py
index da6e40c..a539995 100755
--- a/usertools/dpdk-devbind.py
+++ b/usertools/dpdk-devbind.py
@@ -204,8 +204,7 @@ def check_modules():
# special case for vfio_pci (module is named vfio-pci,
# but its .ko is named vfio_pci)
- sysfs_mods = map(lambda a:
- a if a != 'vfio_pci' else 'vfio-pci', sysfs_mods)
+ sysfs_mods = [a if a != 'vfio_pci' else 'vfio-pci' for a in sysfs_mods]
for mod in mods:
if mod["Name"] in sysfs_mods: