All of lore.kernel.org
 help / color / mirror / Atom feed
* White listing a virtual device
@ 2014-11-07 12:36 Nicolas Pernas Maradei
       [not found] ` <545CBCE0.2030806-M3NBUjLqch7QT0dZR+AlfA@public.gmane.org>
  0 siblings, 1 reply; 12+ messages in thread
From: Nicolas Pernas Maradei @ 2014-11-07 12:36 UTC (permalink / raw)
  To: dev-VfR2kkLFssw

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 device list along with the real ones.

You can see this behaviour by running testpmd as shown below. I have 4 
Niantics on my system and they are all bound to igb_uio driver. You can 
see the 5 ports being reported.

Now, the --pci-whitelist argument lets you white list a device but it 
only accepts a PCI address as an option. My question is, how do you 
white list a virtual device? Did this feature get dropped when the 
--use-device was split into --vdev and --pci-whitelist back in 
March/April or is this just an unhandled corner case?


     [nico dpdk]((v1.7.1))# sudo 
./x86_64-native-linuxapp-gcc/app/testpmd -c 0xf -n 3 
--vdev=eth_pcap0,rx_pcap=eth_ipv4.pcap,tx_pcap=/dev/null
     ...

     Configuring Port 0 (socket 0)
     Port 0: 00:00:00:01:02:03       <---- PCAP virtual device
     Configuring Port 1 (socket 0)
     Port 1: 90:E2:BA:6D:EC:D4
     Configuring Port 2 (socket 0)
     Port 2: 90:E2:BA:6D:EC:D5
     Configuring Port 3 (socket 0)
     Port 3: 90:E2:BA:74:6C:B4
     Configuring Port 4 (socket 0)
     Port 4: 90:E2:BA:74:6C:B5
     Checking link statuses...
     Port 0 Link Up - speed 10000 Mbps - full-duplex
     Port 1 Link Up - speed 10000 Mbps - full-duplex
     Port 2 Link Up - speed 10000 Mbps - full-duplex
     Port 3 Link Up - speed 10000 Mbps - full-duplex
     Port 4 Link Up - speed 10000 Mbps - full-duplex
     Done
     No commandline core given, start packet forwarding
     ...


Thanks,
Nico.

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

end of thread, other threads:[~2014-11-16 21:07 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-11-07 12:36 White listing a virtual device Nicolas Pernas Maradei
     [not found] ` <545CBCE0.2030806-M3NBUjLqch7QT0dZR+AlfA@public.gmane.org>
2014-11-07 12:55   ` Thomas Monjalon
2014-11-07 13:13     ` Nicolas Pernas Maradei
     [not found]       ` <545CC581.40309-M3NBUjLqch7QT0dZR+AlfA@public.gmane.org>
2014-11-07 13:26         ` Neil Horman
     [not found]           ` <20141107132618.GD25469-B26myB8xz7F8NnZeBjwnZQMhkBWG/bsMQH7oEaQurus@public.gmane.org>
2014-11-07 13:39             ` Nicolas Pernas Maradei
     [not found]               ` <545CCBA8.7030900-M3NBUjLqch7QT0dZR+AlfA@public.gmane.org>
2014-11-07 13:59                 ` Thomas Monjalon
2014-11-07 14:02                 ` Neil Horman
     [not found]                   ` <20141107140201.GE25469-B26myB8xz7F8NnZeBjwnZQMhkBWG/bsMQH7oEaQurus@public.gmane.org>
2014-11-07 14:28                     ` Nicolas Pernas Maradei
     [not found]                       ` <545CD710.4040406-M3NBUjLqch7QT0dZR+AlfA@public.gmane.org>
2014-11-07 14:57                         ` Thomas Monjalon
2014-11-07 15:01                           ` Nicolas Pernas Maradei
2014-11-10  8:13                         ` Olivier MATZ
     [not found]                           ` <546073A3.1000008-pdR9zngts4EAvxtiuMwx3w@public.gmane.org>
2014-11-16 21:07                             ` Nicolas Pernas Maradei

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.