aboutsummaryrefslogtreecommitdiffstats
path: root/usertools
diff options
context:
space:
mode:
Diffstat (limited to 'usertools')
-rwxr-xr-xusertools/cpu_layout.py2
-rwxr-xr-xusertools/dpdk-devbind.py8
2 files changed, 9 insertions, 1 deletions
diff --git a/usertools/cpu_layout.py b/usertools/cpu_layout.py
index 93949449..d3c8eba7 100755
--- a/usertools/cpu_layout.py
+++ b/usertools/cpu_layout.py
@@ -4,7 +4,7 @@
# BSD LICENSE
#
# Copyright(c) 2010-2014 Intel Corporation. All rights reserved.
-# Copyright(c) 2017 Cavium Networks Ltd. All rights reserved.
+# Copyright(c) 2017 Cavium, Inc. All rights reserved.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
diff --git a/usertools/dpdk-devbind.py b/usertools/dpdk-devbind.py
index f0225b6c..da6e40cb 100755
--- a/usertools/dpdk-devbind.py
+++ b/usertools/dpdk-devbind.py
@@ -518,6 +518,14 @@ def bind_one(dev_id, driver, force):
def unbind_all(dev_list, force=False):
"""Unbind method, takes a list of device locations"""
+
+ if dev_list[0] == "dpdk":
+ for d in devices.keys():
+ if "Driver_str" in devices[d]:
+ if devices[d]["Driver_str"] in dpdk_drivers:
+ unbind_one(devices[d]["Slot"], force)
+ return
+
dev_list = map(dev_id_from_dev_name, dev_list)
for d in dev_list:
unbind_one(d, force)