summaryrefslogtreecommitdiffstats
path: root/scripts/dpdk_nic_bind.py
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/dpdk_nic_bind.py')
-rwxr-xr-xscripts/dpdk_nic_bind.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/scripts/dpdk_nic_bind.py b/scripts/dpdk_nic_bind.py
index 44d4e82d..ed0462ec 100755
--- a/scripts/dpdk_nic_bind.py
+++ b/scripts/dpdk_nic_bind.py
@@ -629,6 +629,13 @@ def show_table():
table.add_row([id, d['NUMA'], d['Slot_str'], d.get('MAC', ''), d['Device_str'], d.get('Driver_str', ''), d['Interface'], d['Active']])
print(table.draw())
+# dumps pci address and description (user friendly device name)
+def dump_pci_description():
+ if not devices:
+ get_nic_details()
+ for d in devices.values():
+ print('%s - %s' % (d['Slot'], d['Device_str']))
+
def parse_args():
'''Parses the command-line arguments given by the user and takes the
appropriate action for each'''