[dpdk-dev] [PATCH v4] usertools/dpdk-devbind: add support for PCI wildcards
Burakov, Anatoly
anatoly.burakov at intel.com
Fri Aug 28 18:02:21 CEST 2020
Acked-by: Anatoly Burakov <anatoly.burakov at intel.com>
Thanks,
Anatoly
> -----Original Message-----
> From: Bruce Richardson <bruce.richardson at intel.com>
> Sent: Monday, August 24, 2020 6:05 PM
> To: dev at dpdk.org
> Cc: Yigit, Ferruh <ferruh.yigit at intel.com>; Burakov, Anatoly
> <anatoly.burakov at intel.com>; Richardson, Bruce
> <bruce.richardson at intel.com>
> Subject: [PATCH v4] usertools/dpdk-devbind: add support for PCI wildcards
>
> 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>
>
> ---
More information about the dev
mailing list