From mboxrd@z Thu Jan 1 00:00:00 1970 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) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=hX81gI4cTvMG/Io83OY/zaHulBwTD7JeTdfLMOZLBm4=; b=fgAk+FlQS35EPoPxNQi2caKfQ1W5oNv22n3MLRyZMXSpySKkqmmlinFjhi3Acmu/Ci 3YhI7DZz+ulelqbbiwEFZIkt17oX5Pgyfs1e5VzYgg+TFPkx2H+LW5KD52R8AA/fi0Ge tiA3MXbd4n+LwMc2PdOBwwKBcDERoOItG/CNwf+VeclLEOXs9OxHPtirtMFowclHHs6m d+TRBC7EEEM1a40D6Xyr+Es58kuaiKeWDojpX8ZwBkOJjEFY5gXlN0mZ9MvCKEzyAADX Kd8QWGmdFkfeid5RoqyLy9m/IJeE01zCc3bsJ0/AmiBf4BPBCWPW4szVT0gLRAhgOO5T ARCQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=hX81gI4cTvMG/Io83OY/zaHulBwTD7JeTdfLMOZLBm4=; b=UuytFKXetGkXU0SniQLjPj/B+CGaqwS73JFrDAxfAe+jq1wqDU/c0dZjFBWUBbe7yg mGX0cqaNq/z99wxhoBhLhGZgen1OzXrYH7HgwcLAMoMBBEPZvTgZP69XoDw/vWbubvh8 oB3+7sP42fuL23PexP3SGfA1xQTMhdWER5yU6aOKaa5XwYAI8hsOCT/elr9IULbeLodH A8vaoNjRIucB34kjOue8FRfHBSeboCW0soiVpSH8yi9mSbxXj4AtRgo+GTrbFvbz4BGQ 47LmYtd0Jl5mYqCrCcSOpjgt1InLA1XnrksZ2cD1wiN+cD+MDjcMGiJTrsV+fXjREqVI 9ceg== X-Gm-Message-State: AFeK/H1DgVgvDGD1E1WcJ180oM2Z4RNAcqcv6iHWlsLgKnjHuCD94pz/vaL3fM/zvE+9Duz2 X-Received: by 10.28.48.17 with SMTP id w17mr14532353wmw.90.1490701932327; Tue, 28 Mar 2017 04:52:12 -0700 (PDT) Received: from bidouze.dev.6wind.com (host.78.145.23.62.rev.coltfrance.com. [62.23.145.78]) by smtp.gmail.com with ESMTPSA id 24sm4561355wrw.46.2017.03.28.04.52.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 28 Mar 2017 04:52:11 -0700 (PDT) From: Gaetan Rivet To: dev@dpdk.org Cc: Thomas Monjalon Date: Tue, 28 Mar 2017 13:51:57 +0200 Message-Id: <1490701917-17089-1-git-send-email-gaetan.rivet@6wind.com> X-Mailer: git-send-email 2.1.4 Subject: [dpdk-dev] [PATCH 1/1] pci: default to whitelist mode X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Mar 2017 11:52:14 -0000 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