netdev-dpdk: Adapt the requested number of tx and rx queues.
authorDaniele Di Proietto <diproiettod@vmware.com>
Fri, 22 May 2015 16:14:22 +0000 (17:14 +0100)
committerEthan Jackson <ethan@nicira.com>
Fri, 22 May 2015 18:28:19 +0000 (11:28 -0700)
commita0cb2d66f57ac73a56602be3abb9f69cb8ff95c9
treeff39e344b99c39f056c1f4304350ae281488758b
parent45d947c400ded435a1b90fbcb3897c6fa8dd686d
netdev-dpdk: Adapt the requested number of tx and rx queues.

This commit changes the semantics of 'netdev_set_multiq()' to allow OVS
DPDK to run on device with limited multi queue support.

* If a netdev doesn't have the requested number of rxqs it can simply
  inform the datapath without failing.
* If a netdev doesn't have the requested number of txqs it should try
  to create as many as possible and use locking.

Signed-off-by: Daniele Di Proietto <diproiettod@vmware.com>
Signed-off-by: Ethan Jackson <ethan@nicira.com>
Acked-by: Ethan Jackson <ethan@nicira.com>
lib/netdev-dpdk.c
lib/netdev-provider.h
lib/netdev.c
vswitchd/vswitch.xml