From: Andrew Rybchenko Date: Tue, 4 Apr 2017 14:59:20 +0000 (+0100) Subject: pci: do not log false failures for non-whitelisted devices X-Git-Tag: spdx-start~3688 X-Git-Url: http://git.droids-corp.org/?p=dpdk.git;a=commitdiff_plain;h=2ed8fd9d1078b5b7c83e001297cb5f0e322a293c pci: do not log false failures for non-whitelisted devices 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 --- diff --git a/lib/librte_eal/common/eal_common_pci.c b/lib/librte_eal/common/eal_common_pci.c index a0fc9808f3..1ab92c9c10 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; } }