]> git.droids-corp.org - dpdk.git/blobdiff - lib/librte_eal/bsdapp/eal/eal_pci.c
net/bonding: use local prefix namespace
[dpdk.git] / lib / librte_eal / bsdapp / eal / eal_pci.c
index 7d82195807d59f2904bfea5d22ff09404686d5b0..e73b7cd18aec59485b9216df64f99fb04d5bd9af 100644 (file)
@@ -368,7 +368,7 @@ rte_pci_scan(void)
        };
 
        /* for debug purposes, PCI can be disabled */
-       if (internal_config.no_pci)
+       if (!rte_eal_has_pci())
                return 0;
 
        fd = open("/dev/pci", O_RDONLY);