From mboxrd@z Thu Jan 1 00:00:00 1970 From: Gaetan Rivet Subject: [PATCH 1/1] pci: default to whitelist mode Date: Tue, 28 Mar 2017 13:51:57 +0200 Message-ID: <1490701917-17089-1-git-send-email-gaetan.rivet@6wind.com> Cc: Thomas Monjalon To: dev@dpdk.org Return-path: Received: from mail-wr0-f170.google.com (mail-wr0-f170.google.com [209.85.128.170]) by dpdk.org (Postfix) with ESMTP id 2B00D567C for ; Tue, 28 Mar 2017 13:52:14 +0200 (CEST) Received: by mail-wr0-f170.google.com with SMTP id w11so83564313wrc.3 for ; Tue, 28 Mar 2017 04:52:14 -0700 (PDT) List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Expects all devices to be explicitly defined before being probed. Using the -b option will activate blacklist mode instead. Signed-off-by: Gaetan Rivet --- lib/librte_eal/common/eal_common_pci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/librte_eal/common/eal_common_pci.c b/lib/librte_eal/common/eal_common_pci.c index 15a0c48..ad0a8be 100644 --- a/lib/librte_eal/common/eal_common_pci.c +++ b/lib/librte_eal/common/eal_common_pci.c @@ -418,7 +418,7 @@ rte_eal_pci_probe(void) int probe_all = 0; int ret = 0; - if (rte_eal_devargs_type_count(RTE_DEVTYPE_WHITELISTED_PCI) == 0) + if (rte_eal_devargs_type_count(RTE_DEVTYPE_BLACKLISTED_PCI) > 0) probe_all = 1; TAILQ_FOREACH(dev, &pci_device_list, next) { -- 2.1.4