MCPcopy Create free account
hub / github.com/NetSys/bess / unbind_all

Function unbind_all

bin/dpdk-devbind.py:518–530  ·  view source on GitHub ↗

Unbind method, takes a list of device locations

(dev_list, force=False)

Source from the content-addressed store, hash-verified

516
517
518def unbind_all(dev_list, force=False):
519 """Unbind method, takes a list of device locations"""
520
521 if dev_list[0] == "dpdk":
522 for d in devices.keys():
523 if "Driver_str" in devices[d]:
524 if devices[d]["Driver_str"] in dpdk_drivers:
525 unbind_one(devices[d]["Slot"], force)
526 return
527
528 dev_list = map(dev_id_from_dev_name, dev_list)
529 for d in dev_list:
530 unbind_one(d, force)
531
532
533def bind_all(dev_list, driver, force=False):

Callers 1

do_arg_actionsFunction · 0.85

Calls 1

unbind_oneFunction · 0.85

Tested by

no test coverage detected