eal: support link bonding device initialization
[dpdk.git] / lib / librte_eal / common / eal_common_pci.c
index af809a8..c637361 100644 (file)
@@ -150,6 +150,9 @@ rte_eal_pci_probe(void)
                probe_all = 1;
 
        TAILQ_FOREACH(dev, &pci_device_list, next) {
+               /* check if device has already been initialized */
+               if (dev->driver != NULL)
+                       continue;
 
                /* set devargs in PCI structure */
                devargs = pci_devargs_lookup(dev);