pci: do not log false failures for non-whitelisted devices
[dpdk.git] / lib / librte_eal / common / eal_common_pci.c
index d45b7d3..1ab92c9 100644 (file)
@@ -200,7 +200,7 @@ rte_eal_pci_probe_one_driver(struct rte_pci_driver *dr, struct rte_pci_device *d
                                dev->id.device_id, dr->driver.name);
 
                if (dr->drv_flags & RTE_PCI_DRV_NEED_MAPPING) {
-                       /* map resources for devices that use igb_uio */
+                       /* map resources for devices that use igb_uio or VFIO */
                        ret = rte_eal_pci_map_device(dev);
                        if (ret != 0)
                                return ret;
@@ -443,6 +443,7 @@ rte_eal_pci_probe(void)
                                 dev->addr.devid, dev->addr.function);
                        rte_errno = errno;
                        failed++;
+                       ret = 0;
                }
        }