From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Rybchenko Subject: [PATCH] pci: do not log false failures for non-whitelisted devices Date: Tue, 4 Apr 2017 15:59:20 +0100 Message-ID: <1491317960-13577-1-git-send-email-arybchenko@solarflare.com> Mime-Version: 1.0 Content-Type: text/plain Cc: Anatoly Burakov , Aaron Conole To: Return-path: Received: from dispatch1-us1.ppe-hosted.com (dispatch1-us1.ppe-hosted.com [67.231.154.164]) by dpdk.org (Postfix) with ESMTP id 0863E326C for ; Tue, 4 Apr 2017 16:59:32 +0200 (CEST) List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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 --- 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