bus/pci: skip probing some Windows NDIS devices
authorPallavi Kadam <pallavi.kadam@intel.com>
Wed, 10 Feb 2021 20:36:54 +0000 (12:36 -0800)
committerThomas Monjalon <thomas@monjalon.net>
Tue, 16 Mar 2021 11:40:35 +0000 (12:40 +0100)
commitde04405b336ed01e234db39fc211b4592b79c2b3
treea67d08e35f16a6014d2c2927a87a92e3c8afd173
parent16afcbfa30e9c2831264fb349457a4228fa687c8
bus/pci: skip probing some Windows NDIS devices

Implement rte_pci_map_device() to distinguish between the devices bound
to netuio and NDIS devices.
Only return success for the netuio devices.

Fixes: c76ec01b4591 ("bus/pci: support netuio on Windows")
Cc: stable@dpdk.org
Suggested-by: Dmitry Kozlyuk <dmitry.kozliuk@gmail.com>
Signed-off-by: Pallavi Kadam <pallavi.kadam@intel.com>
Reviewed-by: Ranjit Menon <ranjit.menon@intel.com>
Acked-by: Tal Shnaiderman <talshn@nvidia.com>
Acked-by: Narcisa Vasile <navasile@linux.microsoft.com>
Tested-by: Narcisa Vasile <navasile@linux.microsoft.com>
drivers/bus/pci/windows/pci.c