[dpdk-dev,1/1] pci: default to whitelist mode
Checks
Commit Message
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(-)
Comments
On Tue, Mar 28, 2017 at 01:51:57PM +0200, Gaetan Rivet wrote:
> 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>
> ---
So does this change the default behaviour when no black or whitelist
options are defined? Instead of having all devices polled, we will have
none?
/Bruce
Hi Bruce,
On Tue, Mar 28, 2017 at 12:58:53PM +0100, Bruce Richardson wrote:
>On Tue, Mar 28, 2017 at 01:51:57PM +0200, Gaetan Rivet wrote:
>> 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>
>> ---
>So does this change the default behaviour when no black or whitelist
>options are defined? Instead of having all devices polled, we will have
>none?
>
Yes, precisely.
I was a little quick to send this patch, I sent a new version with more
explanation as for my rationale behind this change:
http://dpdk.org/ml/archives/dev/2017-March/061818.html
>/Bruce
@@ -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) {