From: Omri Mor <omrimor2@illinois.edu>
To: <dev@dpdk.org>
Cc: Omri Mor <omrimor2@illinois.edu>
Subject: [dpdk-dev] [PATCH] usertools/dpdk-devbind.py: fix broken Python 3 support
Date: Fri, 6 Oct 2017 16:38:38 -0500 [thread overview]
Message-ID: <20171006213838.20000-1-omrimor2@illinois.edu> (raw)
When using Python 3, dpdk-devbind.py fails to detect modules other than
igb_uio.
Signed-off-by: Omri Mor <omrimor2@illinois.edu>
---
usertools/dpdk-devbind.py | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/usertools/dpdk-devbind.py b/usertools/dpdk-devbind.py
index da6e40cbe..a539995cd 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:
--
2.14.2
next reply other threads:[~2017-10-06 21:38 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-10-06 21:38 Omri Mor [this message]
2017-11-07 22:31 ` Thomas Monjalon
-- strict thread matches above, loose matches on Subject: below --
2017-10-03 0:25 Mor, Omri
2017-10-03 10:41 ` Bruce Richardson
2017-10-03 14:32 ` Mor, Omri
2017-10-03 14:35 ` Mor, Omri
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20171006213838.20000-1-omrimor2@illinois.edu \
--to=omrimor2@illinois.edu \
--cc=dev@dpdk.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).