numam-dpdk/usertools
Bruce Richardson 781eafc965 usertools: support globbing for PCI device binding
When binding or unbinding a range of devices, it can be useful to use
wildcards to specify the devices rather than repeating the same prefix
multiple times. We can use the python "glob" module to give us this
functionality - at least for PCI devices - by checking /sys for matching
files.

Examples of use from my system:

    ./dpdk-devbind.py -b vfio-pci 80:04.*
    ./dpdk-devbind.py -u 80:04.[2-7]

The first example binds eight devices, 80:04.0..80:04.7, to vfio-pci. The
second then unbinds six of those devices, 80:04.2..80:04.7, from any
driver.

Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
Acked-by: Anatoly Burakov <anatoly.burakov@intel.com>
Tested-by: Ferruh Yigit <ferruh.yigit@intel.com>
2020-09-08 23:39:32 +02:00
..
cpu_layout.py add python2 deprecation notice 2020-07-21 22:58:18 +02:00
dpdk-devbind.py usertools: support globbing for PCI device binding 2020-09-08 23:39:32 +02:00
dpdk-pmdinfo.py add python2 deprecation notice 2020-07-21 22:58:18 +02:00
dpdk-setup.sh usertools: warn about future removal of setup script 2020-08-07 13:39:45 +02:00
dpdk-telemetry-client.py add python2 deprecation notice 2020-07-21 22:58:18 +02:00
dpdk-telemetry.py usertools: fix telemetry user socket path 2020-06-25 01:10:12 +02:00
meson.build usertools: add new telemetry script 2020-05-10 23:56:47 +02:00