bus/pci: support allow/block lists on Windows
authorKhoa To <khot@microsoft.com>
Mon, 1 Mar 2021 06:52:41 +0000 (22:52 -0800)
committerThomas Monjalon <thomas@monjalon.net>
Tue, 16 Mar 2021 21:27:25 +0000 (22:27 +0100)
commit6857cb635821c280afcd7f63e588da52c0048991
tree3e712f5e92df46a3f5d06f94ebf2a078d51c08e2
parentd9b02d2b397cc781859dfe2efb1e1bcb72f2e196
bus/pci: support allow/block lists on Windows

EAL -a and -b options are used to specify which PCI devices are
explicitly allowed or blocked during PCI bus scan.  This evaluation
is missing in the Windows implementation of rte_pci_scan.

This patch provides this missing functionality, so that apps can specify
which devices to ignore during PCI bus scan.

Signed-off-by: Khoa To <khot@microsoft.com>
Acked-by: Ranjit Menon <ranjit.menon@intel.com>
Acked-by: Dmitry Kozlyuk <dmitry.kozliuk@gmail.com>
drivers/bus/pci/windows/pci.c