git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
examples/vdpa: add statistics show command
[dpdk.git]
/
usertools
/
dpdk-pmdinfo.py
diff --git
a/usertools/dpdk-pmdinfo.py
b/usertools/dpdk-pmdinfo.py
index
069a3bf
..
12f2073
100755
(executable)
--- a/
usertools/dpdk-pmdinfo.py
+++ b/
usertools/dpdk-pmdinfo.py
@@
-539,7
+539,7
@@
def scan_for_autoload_pmds(dpdk_path):
return
(autoload_path, scannedfile) = readelf.search_for_autoload_path()
return
(autoload_path, scannedfile) = readelf.search_for_autoload_path()
- if
(autoload_path is None or autoload_path is "")
:
+ if
not autoload_path
:
if (raw_output is False):
print("No autoload path configured in %s" % dpdk_path)
return
if (raw_output is False):
print("No autoload path configured in %s" % dpdk_path)
return
@@
-561,7
+561,10
@@
def main(stream=None):
pcifile_default = "./pci.ids" # For unknown OS's assume local file
if platform.system() == 'Linux':
pcifile_default = "./pci.ids" # For unknown OS's assume local file
if platform.system() == 'Linux':
- pcifile_default = "/usr/share/hwdata/pci.ids"
+ # hwdata is the legacy location, misc is supported going forward
+ pcifile_default = "/usr/share/misc/pci.ids"
+ if not os.path.exists(pcifile_default):
+ pcifile_default = "/usr/share/hwdata/pci.ids"
elif platform.system() == 'FreeBSD':
pcifile_default = "/usr/local/share/pciids/pci.ids"
if not os.path.exists(pcifile_default):
elif platform.system() == 'FreeBSD':
pcifile_default = "/usr/local/share/pciids/pci.ids"
if not os.path.exists(pcifile_default):