From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail1.windriver.com (mail1.windriver.com [147.11.146.13]) by dpdk.org (Postfix) with ESMTP id 256BDF72 for ; Fri, 25 Nov 2016 04:16:59 +0100 (CET) Received: from ALA-HCA.corp.ad.wrs.com (ala-hca.corp.ad.wrs.com [147.11.189.40]) by mail1.windriver.com (8.15.2/8.15.1) with ESMTPS id uAP3GxDb013596 (version=TLSv1 cipher=AES128-SHA bits=128 verify=FAIL) for ; Thu, 24 Nov 2016 19:16:59 -0800 (PST) Received: from [128.224.163.146] (128.224.163.146) by ALA-HCA.corp.ad.wrs.com (147.11.189.50) with Microsoft SMTP Server id 14.3.294.0; Thu, 24 Nov 2016 19:16:58 -0800 To: CC: Mark Asselstine , "Wang, Weiwei" From: alloc Message-ID: <24c64816-8084-b5fd-0b10-3db3143500ec@windriver.com> Date: Fri, 25 Nov 2016 11:16:56 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit Subject: [dpdk-dev] [PATCH] tools/dpdkdevbind.py: remove call to lower case for mod path X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Nov 2016 03:17:00 -0000 If the module path has upper case chars, the dpdk-devbind.py script will crunch them to lower case. This will result in the script never finding a module. Port patch to dpdk-1.7.0 dpdk_nic_bind.py has been renamed to dpdk-devbind.py in 16.11, so just change file name. Signed-off-by: Paul Barrette Signed-off-by: Pengyu Ma Signed-off-by: chunguang yang --- tools/dpdk-devbind.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/dpdk-devbind.py b/tools/dpdk-devbind.py index f1d374d..d66d68c 100755 --- a/tools/dpdk-devbind.py +++ b/tools/dpdk-devbind.py @@ -141,7 +141,7 @@ def find_module(mod): # check using depmod try: depmod_out = check_output(["modinfo", "-n", mod], - stderr=subprocess.STDOUT).lower() + stderr=subprocess.STDOUT) if "error" not in depmod_out: path = depmod_out.strip() if exists(path): -- 2.9.3