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
net/sfc: free mbufs in bulks on simple EF10 Tx reap
[dpdk.git]
/
usertools
/
dpdk-devbind.py
diff --git
a/usertools/dpdk-devbind.py
b/usertools/dpdk-devbind.py
index
f0225b6
..
da6e40c
100755
(executable)
--- 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"""
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)
dev_list = map(dev_id_from_dev_name, dev_list)
for d in dev_list:
unbind_one(d, force)