From: "Mor, Omri" <omrimor2@illinois.edu>
To: "dev@dpdk.org" <dev@dpdk.org>
Cc: Bruce Richardson <bruce.richardson@intel.com>
Subject: Re: [dpdk-dev] [PATCH] usertools/dpdk-devbind.py: fix broken Python 3 support
Date: Tue, 3 Oct 2017 14:32:59 +0000 [thread overview]
Message-ID: <FEF26937-94E9-4FA1-8956-936E0828796A@illinois.edu> (raw)
In-Reply-To: <20171003104132.GB20140@bricha3-MOBL3.ger.corp.intel.com>
>From aa9bbfd7816dbea4abe4fdc0bec8b8c5f088148c Mon Sep 17 00:00:00 2001
From: Omri Mor <omrimor2@illinois.edu>
Date: Mon, 2 Oct 2017 18:54:43 -0500
Subject: [PATCH] usertools/dpdk-devbind.py: fix broken Python 3 support
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 prev parent reply other threads:[~2017-10-03 14:33 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-10-03 0:25 Mor, Omri
2017-10-03 10:41 ` Bruce Richardson
2017-10-03 14:32 ` Mor, Omri [this message]
2017-10-03 14:35 ` Mor, Omri
2017-10-06 21:38 Omri Mor
2017-11-07 22:31 ` Thomas Monjalon
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=FEF26937-94E9-4FA1-8956-936E0828796A@illinois.edu \
--to=omrimor2@illinois.edu \
--cc=bruce.richardson@intel.com \
--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).