From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from pps05.cites.illinois.edu (pps05.cites.illinois.edu [192.17.82.72]) by dpdk.org (Postfix) with ESMTP id 703E41B200 for ; Fri, 6 Oct 2017 23:38:54 +0200 (CEST) Received: from uex131.ad.uillinois.edu (uex131.cites.illinois.edu [192.17.212.207]) by pps05.cites.illinois.edu (8.16.0.21/8.16.0.21) with ESMTPS id v96LcrCO023585 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT) for ; Fri, 6 Oct 2017 16:38:53 -0500 Received: from wsrv.cs.uiuc.edu (64.22.180.153) by uex131.ad.uillinois.edu (192.17.212.207) with Microsoft SMTP Server (TLS) id 15.0.1320.4; Fri, 6 Oct 2017 16:38:52 -0500 From: Omri Mor To: CC: Omri Mor Date: Fri, 6 Oct 2017 16:38:38 -0500 Message-ID: <20171006213838.20000-1-omrimor2@illinois.edu> X-Mailer: git-send-email 2.14.2 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [64.22.180.153] X-ClientProxiedBy: uex132.ad.uillinois.edu (192.17.212.208) To uex131.ad.uillinois.edu (192.17.212.207) X-CLX-Shades: None X-CLX-Response: 1TFkXGBgSEQpMehceEhEKWU0XZEVETxEKWUkXGnEaEBp3BhgaEnEYGRMQGnc GGBoGGhEKWV4XaG55EQpJRhdfQ19JdVpYRU5fSV5DRUQRCkNOF0tyEm8SRB57RgcHRExdSXV5c1 hlHGdjXVNaWmJpYWt1EQpYXBcfBBoEGxsdB0wZS0kZSxwbBRsaBBsbGgQeEgQbEBseGh8aEQpeW Rd4bnBTYxEKTVwXGR8eEQpMWhdpQk1dEQpNThdoEQpDWhcbExgEGx0EGBsYBBgaHREKQl4XGxEK REkXGxEKQkYXZxNtYBtbZUIffn0RCkJFF28STwFNRX1GGmB7EQpCThdvHBl/HF9oRlxhEhEKQkw XbFJvQ3BlUn1lUxIRCkJsF2xZU1thTmx/c2BzEQpCQBduYFl5QnxLemB9GREKQlgXbW57UGxmWX 5icxgRClpYFxkRCnBoF3pCS2VkHh5iGFN7EBkaEQpwaBdrHUZfSEwYZlxBWBAZGhEKcGgXY2Z5G mEYQG1gaEEQGRoRCnBoF2kfQVBifVppXm4aEBkaEQpwaBdtYmV+QhhOf35hGRAZGhEKcGwXbWRe eQUcbRlkRVMQGRoRCnBDF2BHGmxBa11NWmBwEBsSHREKbX4XGhEKWE0XSxEg X-Spam-Score: 0 X-Spam-Details: rule=cautious_plus_nq_notspam policy=cautious_plus_nq score=0 priorityscore=48 malwarescore=0 suspectscore=4 phishscore=0 bulkscore=0 spamscore=0 clxscore=228 lowpriorityscore=0 impostorscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1707230000 definitions=main-1710060299 X-Spam-OrigSender: omrimor2@illinois.edu X-Spam-Bar: Subject: [dpdk-dev] [PATCH] usertools/dpdk-devbind.py: fix broken Python 3 support X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Oct 2017 21:38:54 -0000 When using Python 3, dpdk-devbind.py fails to detect modules other than igb_uio. Signed-off-by: Omri Mor --- 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