DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH 1/1] pci: default to whitelist mode
@ 2017-03-28 11:51 Gaetan Rivet
  2017-03-28 11:58 ` Bruce Richardson
  2017-03-28 12:01 ` [dpdk-dev] [PATCH v2 " Gaetan Rivet
  0 siblings, 2 replies; 11+ messages in thread
From: Gaetan Rivet @ 2017-03-28 11:51 UTC (permalink / raw)
  To: dev; +Cc: Thomas Monjalon

Expects all devices to be explicitly defined before being probed. Using
the -b option will activate blacklist mode instead.

Signed-off-by: Gaetan Rivet <gaetan.rivet@6wind.com>
---
 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

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2017-03-30 19:36 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-28 11:51 [dpdk-dev] [PATCH 1/1] pci: default to whitelist mode Gaetan Rivet
2017-03-28 11:58 ` Bruce Richardson
2017-03-28 12:05   ` Gaëtan Rivet
2017-03-28 12:01 ` [dpdk-dev] [PATCH v2 " Gaetan Rivet
2017-03-28 12:20   ` Bruce Richardson
2017-03-28 12:44     ` Gaëtan Rivet
2017-03-28 13:02       ` Van Haaren, Harry
2017-03-28 13:53         ` Gaëtan Rivet
2017-03-30 19:36         ` Thomas Monjalon
2017-03-28 13:03       ` Bruce Richardson
2017-03-28 13:35         ` Gaëtan Rivet

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).