]> git.droids-corp.org - dpdk.git/blobdiff - lib/librte_eal/common/eal_common_pci.c
eal: support link bonding device initialization
[dpdk.git] / lib / librte_eal / common / eal_common_pci.c
index af809a8188e59ab6a94baa2114e93eb1eb89d7ad..c6373614b3e8ecbff871c727640ac43c79dbf6ff 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);