[dpdk-dev] White listing a virtual device

2014-11-16 Thread Nicolas Pernas Maradei
On 10/11/14 08:13, Olivier MATZ wrote: > What about using the --no-pci option ? > > It would blacklist all physical devices (as PCI devices are the only > ones supported today). Hi Olivier, Your idea does work for me. Although it's more a workaround than a real solution. I'll be submitting a pa

[dpdk-dev] White listing a virtual device

2014-11-10 Thread Olivier MATZ
Hi Nicolas, > Thanks for your reply. The -w option is the same as --pci-whitelist > mentioned in my first email. Declaring a virtual device with --vdev > means that I want to use it but there doesn't seem to be a way to say > that I want to use only that device. Clearly the white list option is >

[dpdk-dev] White listing a virtual device

2014-11-07 Thread Thomas Monjalon
2014-11-07 14:28, Nicolas Pernas Maradei: > Thanks for your reply. The -w option is the same as --pci-whitelist > mentioned in my first email. Declaring a virtual device with --vdev > means that I want to use it but there doesn't seem to be a way to say > that I want to use only that device. Cle

[dpdk-dev] White listing a virtual device

2014-11-07 Thread Nicolas Pernas Maradei
On 07/11/14 14:57, Thomas Monjalon wrote: > OK, now I better understand your need. > I think that your use case was simply forgotten when designing the > new behaviour. > Could you prepare a patch for this need? > Or maybe you could workaround with a script based on lspci to blacklist all > network

[dpdk-dev] White listing a virtual device

2014-11-07 Thread Thomas Monjalon
2014-11-07 13:39, Nicolas Pernas Maradei: > On 07/11/14 13:26, Neil Horman wrote: > > Then you create the pcap device with --vdev, and simply don't load the pmds > > for > > any of your physical devices (or just don't use pci-whitelist at all if > > you're > > doing a static build). If you do th

[dpdk-dev] White listing a virtual device

2014-11-07 Thread Nicolas Pernas Maradei
On 07/11/14 14:02, Neil Horman wrote: > Ah, you want the -w option then, it still appears in the short options list in > my tree. That sets up the option parsing for all pci devices to require > whitelisting to be initalized. virtual devices are exempt from this process > because declaring them wi

[dpdk-dev] White listing a virtual device

2014-11-07 Thread Thomas Monjalon
Hi Nicolas, 2014-11-07 12:36, Nicolas Pernas Maradei: > I'm currently using the --vdev option to create virtual devices, mainly > for testing. I noticed that these virtual devices are not being > white-listed any more. That was the original behaviour when the option > was called --use-device. I

[dpdk-dev] White listing a virtual device

2014-11-07 Thread Nicolas Pernas Maradei
On 07/11/14 13:26, Neil Horman wrote: > Then you create the pcap device with --vdev, and simply don't load the pmds > for > any of your physical devices (or just don't use pci-whitelist at all if you're > doing a static build). If you do that, then the corresponding niantic driver > won't initia

[dpdk-dev] White listing a virtual device

2014-11-07 Thread Nicolas Pernas Maradei
On 07/11/14 12:55, Thomas Monjalon wrote: > It's by design. If you add a vdev, you want to use it and there is no > reason to whitelist it, and especially no reason to blacklist a device > you created for your usage. > > Do you agree? Hi Thomas, Generally speaking you probably won't want to white

[dpdk-dev] White listing a virtual device

2014-11-07 Thread Nicolas Pernas Maradei
Hi, I'm currently using the --vdev option to create virtual devices, mainly for testing. I noticed that these virtual devices are not being white-listed any more. That was the original behaviour when the option was called --use-device. Instead of that the virtual device is being added to the d

[dpdk-dev] White listing a virtual device

2014-11-07 Thread Neil Horman
On Fri, Nov 07, 2014 at 01:39:52PM +, Nicolas Pernas Maradei wrote: > > On 07/11/14 13:26, Neil Horman wrote: > >Then you create the pcap device with --vdev, and simply don't load the pmds > >for > >any of your physical devices (or just don't use pci-whitelist at all if > >you're > >doing a

[dpdk-dev] White listing a virtual device

2014-11-07 Thread Neil Horman
On Fri, Nov 07, 2014 at 01:13:37PM +, Nicolas Pernas Maradei wrote: > On 07/11/14 12:55, Thomas Monjalon wrote: > >It's by design. If you add a vdev, you want to use it and there is no > >reason to whitelist it, and especially no reason to blacklist a device > >you created for your usage. > > >