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 54E471B2BF for ; Tue, 3 Oct 2017 16:33:04 +0200 (CEST) Received: from cex1315.ad.uillinois.edu (cex1315.cites.illinois.edu [64.22.177.40]) by pps05.cites.illinois.edu (8.16.0.21/8.16.0.21) with ESMTPS id v93EWM1T017593 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Tue, 3 Oct 2017 09:33:02 -0500 Received: from cex1315.ad.uillinois.edu (64.22.177.40) by cex1315.ad.uillinois.edu (64.22.177.40) with Microsoft SMTP Server (TLS) id 15.0.1320.4; Tue, 3 Oct 2017 09:32:59 -0500 Received: from CITESHT1.ad.uillinois.edu (192.17.212.151) by cex1315.ad.uillinois.edu (64.22.177.40) with Microsoft SMTP Server (TLS) id 15.0.1320.4 via Frontend Transport; Tue, 3 Oct 2017 09:32:59 -0500 Received: from CHIMBX1.ad.uillinois.edu ([169.254.6.240]) by CITESHT1.ad.uillinois.edu ([128.174.34.206]) with mapi id 14.03.0361.001; Tue, 3 Oct 2017 09:32:59 -0500 From: "Mor, Omri" To: "dev@dpdk.org" CC: Bruce Richardson Thread-Topic: [dpdk-dev] [PATCH] usertools/dpdk-devbind.py: fix broken Python 3 support Thread-Index: AQHTO94cYtkShYOlNku4/kGHpIlj1KLSRHAAgABAqoA= Date: Tue, 3 Oct 2017 14:32:59 +0000 Message-ID: References: <20171003104132.GB20140@bricha3-MOBL3.ger.corp.intel.com> In-Reply-To: <20171003104132.GB20140@bricha3-MOBL3.ger.corp.intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.195.17.125] Content-Type: text/plain; charset="us-ascii" Content-ID: <18EB3924B237224692A9573B23568C63@mx.uillinois.edu> Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-CLX-Shades: None X-CLX-Response: 1TFkXHh4ZEQpMehcaEQpZTRdkRURPEQpZSRcHH3EZBgcZdwYYGhoGGxoaQh0 GGgYbGhoGHhJxGBAadwYaBhoGGgYaBhoGGnEaEBp3BhoRClleF2hjeREKSUYXX0NfSXVaWEVOX0 leQ0VEEQpDThdHQHUeWGtHWn1ZWH4bfhJ/TmMZTFBzeBNuZBtwU1BHWhEKWFwXHwQaBBsbHQdMG UtJGUscGwUbGgQbGxoEHhIEEhwQGx4aHxoRCl5ZF3hpf3sfEQpNXBceExoRCkxaF2hra2t7EQpM Rhdia2sRCkNaFxweBBgYBBsdHQQeGhEKQl4XGxEKRFgXGBEKRF4XGBEKREkXGxEKQkYXYGFvbHw aeGhaaXIRCkJFF2NkTFN6Em9EcFBPEQpCThdvHBl/HF9oRlxhEhEKQkwXbFJvQ3BlUn1lUxIRCk JsF2xZZExsfmhrfXgBEQpCQBdmSF9BbWMdQG8FAREKWlgXGBEKcGgXax1GX0hMGGZcQVgQGRoRC nBoF2NmeRphGEBtYGhBEBkaEQpwaBdsa25GG20SU0AaHhAZGhEKcGgXb21SQHl8a19mXwEQGRoR CnBoF21iZX5CGE5/fmEZEBkaEQpwbBdoE3AaE25vbERFEhAZGhEKcEwXYx5gf3AbYW99fHMQGRo RCnBDF2BMf29JblphTkloEBsfHBEKbX4XGhEKWE0XSxEg X-Spam-Score: 0 X-Spam-Details: rule=cautious_plus_nq_notspam policy=cautious_plus_nq score=0 priorityscore=0 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=443 lowpriorityscore=0 impostorscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1707230000 definitions=main-1710030208 X-Spam-OrigSender: omrimor2@illinois.edu X-Spam-Bar: Subject: Re: [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: Tue, 03 Oct 2017 14:33:04 -0000 >>From aa9bbfd7816dbea4abe4fdc0bec8b8c5f088148c Mon Sep 17 00:00:00 2001 From: Omri Mor 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 --- 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(): =20 # special case for vfio_pci (module is named vfio-pci, # but its .ko is named vfio_pci) - sysfs_mods =3D map(lambda a: - a if a !=3D 'vfio_pci' else 'vfio-pci', sysfs_mod= s) + sysfs_mods =3D [a if a !=3D 'vfio_pci' else 'vfio-pci' for a in sy= sfs_mods] =20 for mod in mods: if mod["Name"] in sysfs_mods: --=20 2.14.2