]> git.droids-corp.org - dpdk.git/blobdiff - lib/librte_eal/common/eal_common_pci.c
pci: reference driver structure for each device
[dpdk.git] / lib / librte_eal / common / eal_common_pci.c
index 02ea211141f5730fc9fe6ff43d004f7cda1cea93..e5e9b85f1fa499f22b95110d0768537235ba951f 100644 (file)
@@ -80,9 +80,8 @@ pci_probe_all_drivers(struct rte_pci_device *dev)
 {
        struct rte_pci_driver *dr = NULL;
 
+       dev->blacklisted = !!is_blacklisted(dev);
        TAILQ_FOREACH(dr, &driver_list, next) {
-               if (is_blacklisted(dev))
-                       return -1;
                if (rte_eal_pci_probe_one_driver(dr, dev) == 0)
                        return 0;
        }