usertools: add option to unbind all devices
authorFerruh Yigit <ferruh.yigit@intel.com>
Thu, 4 May 2017 14:10:50 +0000 (15:10 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 5 Jul 2017 22:53:15 +0000 (00:53 +0200)
commit657c7133854b4f209a8fc3ebd7f978bcd3353b63
tree2d97738ad4df99c60fa3cff1134d40efbfaf9139
parenta1e7c17555e8f77d520ba5f06ed26c00e77a2bd1
usertools: add option to unbind all devices

-u accepts "dpdk" argument to unbind all devices bound to a DPDK driver.

Usage:
usertools/dpdk-devbind.py -u dpdk

Example:
$ usertools/dpdk-devbind.py -s

Network devices using DPDK-compatible driver
============================================
0000:08:00.1 '...' drv=igb_uio unused=
0000:81:00.0 '...' drv=igb_uio unused=
0000:88:00.0 '...' drv=igb_uio unused=
0000:88:00.1 '...' drv=igb_uio unused=
...

$ usertools/dpdk-devbind.py -u dpdk
$ usertools/dpdk-devbind.py -s

Network devices using DPDK-compatible driver
============================================
<none>
....

Signed-off-by: Ferruh Yigit <ferruh.yigit@intel.com>
usertools/dpdk-devbind.py