[dpdk-dev] [PATCH] usertools/pmdinfo: fix plugin auto scan
David Marchand
david.marchand at redhat.com
Tue Oct 19 14:52:30 CEST 2021
Migration to argparse was incomplete.
$ dpdk-pmdinfo.py -p $(which dpdk-testpmd)
Traceback (most recent call last):
File "/usr/bin/dpdk-pmdinfo.py", line 626, in <module>
main()
File "/usr/bin/dpdk-pmdinfo.py", line 596, in main
exit(scan_for_autoload_pmds(args[0]))
TypeError: 'Namespace' object does not support indexing
Fixes: 81255f27c65c ("usertools: replace optparse with argparse")
Cc: stable at dpdk.org
Signed-off-by: David Marchand <david.marchand at redhat.com>
---
usertools/dpdk-pmdinfo.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/usertools/dpdk-pmdinfo.py b/usertools/dpdk-pmdinfo.py
index 3381aa616c..40ef5cec6c 100755
--- a/usertools/dpdk-pmdinfo.py
+++ b/usertools/dpdk-pmdinfo.py
@@ -593,7 +593,7 @@ def main(stream=None):
exit(1)
if args.pdir:
- exit(scan_for_autoload_pmds(args[0]))
+ exit(scan_for_autoload_pmds(args.elf_file))
ldlibpath = os.environ.get('LD_LIBRARY_PATH')
if ldlibpath is None:
--
2.23.0
More information about the dev
mailing list