[dpdk-dev] [PATCH] pci: do not log false failures for non-whitelisted devices
Andrew Rybchenko
arybchenko at solarflare.com
Tue Apr 4 16:59:20 CEST 2017
If probe of the whitelisted PCI device fails, reset ret to zero
to silently skip non-whitelisted PCI devices.
Fixes: 10f6c93cea38 ("eal: do not panic on PCI failures")
Signed-off-by: Andrew Rybchenko <arybchenko at solarflare.com>
---
lib/librte_eal/common/eal_common_pci.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/lib/librte_eal/common/eal_common_pci.c b/lib/librte_eal/common/eal_common_pci.c
index a0fc980..1ab92c9 100644
--- a/lib/librte_eal/common/eal_common_pci.c
+++ b/lib/librte_eal/common/eal_common_pci.c
@@ -443,6 +443,7 @@ rte_eal_pci_probe(void)
dev->addr.devid, dev->addr.function);
rte_errno = errno;
failed++;
+ ret = 0;
}
}
--
2.7.4
More information about the dev
mailing list