DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH] tools/dpdkdevbind.py: remove call to lower case for mod path
@ 2016-11-25  3:16 alloc
  2017-04-28  9:38 ` Thomas Monjalon
  0 siblings, 1 reply; 7+ messages in thread
From: alloc @ 2016-11-25  3:16 UTC (permalink / raw)
  To: dev; +Cc: Mark Asselstine, Wang, Weiwei

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 <paul.barrette@windriver.com>
Signed-off-by: Pengyu Ma <pengyu.ma@windriver.com>
Signed-off-by: chunguang yang <chunguang.yang@windriver.com>
---
  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

^ permalink raw reply	[flat|nested] 7+ messages in thread
* [dpdk-dev] [PATCH] tools/dpdkdevbind.py: remove call to lower case for mod path
@ 2016-11-25  3:10 alloc
  0 siblings, 0 replies; 7+ messages in thread
From: alloc @ 2016-11-25  3:10 UTC (permalink / raw)
  To: dev



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2017-05-01 17:30 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-11-25  3:16 [dpdk-dev] [PATCH] tools/dpdkdevbind.py: remove call to lower case for mod path alloc
2017-04-28  9:38 ` Thomas Monjalon
2017-05-01 15:24   ` Mark Asselstine
2017-05-01 15:33     ` Mark Asselstine
2017-05-01 16:29       ` Thomas Monjalon
2017-05-01 17:30         ` Mark Asselstine
  -- strict thread matches above, loose matches on Subject: below --
2016-11-25  3:10 alloc

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).