[dpdk-dev] [PATCH] usertools/dpdk-devbind: add support for PCI wildcards
Ferruh Yigit
ferruh.yigit at intel.com
Thu Aug 20 16:44:54 CEST 2020
On 8/20/2020 1:23 PM, Bruce Richardson wrote:
> 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 at intel.com>
This is useful, thanks.
Tested-by: Ferruh Yigit <ferruh.yigit at intel.com>
It can be good to document this new capability in the 'help' output
(./usertools/dpdk-devbind.py --usage).
More information about the dev
mailing list