From mboxrd@z Thu Jan 1 00:00:00 1970 From: alloc Subject: [PATCH] tools/dpdkdevbind.py: remove call to lower case for mod path Date: Fri, 25 Nov 2016 11:16:56 +0800 Message-ID: <24c64816-8084-b5fd-0b10-3db3143500ec@windriver.com> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit Cc: Mark Asselstine , "Wang, Weiwei" To: 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) List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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