[dpdk-dev] [PATCH 09/11] device-args: replace use-device eal option by pci-whitelist and vdev
thomas.monjalon at 6wind.com
Mon Mar 24 23:39:25 CET 2014
04/03/2014 13:14, Richardson, Bruce:
> 04/03/2014 14:09, Olivier MATZ:
> > My initial concern was that --use-device has 2 different significations,
> > depending on the format of arguments:
> > - instanciate a virtual driver if it looks like a vdev name
> > - add a PCI device to the whitelist if it looks like a pci address
> > I also find strange that instanciating a virtual device changes the PCI
> > mode to whitelist, even if it could be fixed by adding a specific argument
> > for that.
> [BR] I agree that having the mode change silently like that was probably not
> the best design. I therefore, agree that a flag should be used to switch
> from normal to whitelist mode, I just think that thereafter the devices of
> whatever type should all be enumerated using a common flag parameter.
I think we should split this in 2 functions because they have totally
- create a virtual device and instantiate a driver
- whitelist a physical device for driver probing
Using the same option for vdev and whitelist would be even more confusing in
case of blacklist because drivers would probe explicitly listed vdevs and PCI
devs which are not blacklisted.
More information about the dev