summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorHarry van Haaren <harry.van.haaren@intel.com>2015-10-30 14:17:58 +0000
committerThomas Monjalon <thomas.monjalon@6wind.com>2015-12-06 01:02:51 +0100
commit8c91541188c911e690fb745e575763bd12faf4d2 (patch)
treed80bcfda77fcc71d40b591f493a0260b41d2ddb9 /tools
parent90f455f3d337273ccaf122463982de157ada6ff6 (diff)
downloaddpdk-8c91541188c911e690fb745e575763bd12faf4d2.zip
dpdk-8c91541188c911e690fb745e575763bd12faf4d2.tar.gz
dpdk-8c91541188c911e690fb745e575763bd12faf4d2.tar.xz
tools: add short alias -s to NIC binding status
This patch adds -s as an alias to --status in dpdk_nic_bind.py, providing a convenient shorthand. Signed-off-by: Harry van Haaren <harry.van.haaren@intel.com> Acked-by: Ferruh Yigit <ferruh.yigit@intel.com>
Diffstat (limited to 'tools')
-rwxr-xr-xtools/dpdk_nic_bind.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/dpdk_nic_bind.py b/tools/dpdk_nic_bind.py
index b7bd877..f02454e 100755
--- a/tools/dpdk_nic_bind.py
+++ b/tools/dpdk_nic_bind.py
@@ -68,7 +68,7 @@ Options:
--help, --usage:
Display usage information and quit
- --status:
+ -s, --status:
Print the current status of all known network interfaces.
For each device, it displays the PCI domain, bus, slot and function,
along with a text description of the device. Depending upon whether the
@@ -477,7 +477,7 @@ def parse_args():
sys.exit(0)
try:
- opts, args = getopt.getopt(sys.argv[1:], "b:u",
+ opts, args = getopt.getopt(sys.argv[1:], "b:us",
["help", "usage", "status", "force",
"bind=", "unbind"])
except getopt.GetoptError, error:
@@ -489,7 +489,7 @@ def parse_args():
if opt == "--help" or opt == "--usage":
usage()
sys.exit(0)
- if opt == "--status":
+ if opt == "--status" or opt == "-s":
status_flag = True
if opt == "--force":
force_flag = True