netdev-dpdk: Obtain number of queues for vhost ports from attached virtio.
authorIlya Maximets <i.maximets@samsung.com>
Fri, 8 Jul 2016 13:52:37 +0000 (16:52 +0300)
committerDaniele Di Proietto <diproiettod@vmware.com>
Fri, 8 Jul 2016 22:27:21 +0000 (15:27 -0700)
commit81acebdaaf27048dbd6cb602a04b6cd0108c9423
tree7a12c8771f9e36e5a4c3de30f174f99f239f90c6
parent62b87eab7de505242a5e52e9b625f69403e2e708
netdev-dpdk: Obtain number of queues for vhost ports from attached virtio.

Currently, there are few inconsistencies in ways to configure number of
queues for netdev device:

* dpif-netdev can't know about exact number of queues
  allocated inside netdev.
  This leads to constant mapping of queue-ids to 'real' ones.

* We are able to configure 'n_rxq' for vhost-user devices, but
  there is only one sane number of rx queues which must be used
  and configured manually (number of queues that allocated
  in QEMU).

This patch disables configuration of 'n_rxq' for DPDK vHost devices.
Configuration of rx and tx queues now automatically applied from
connected virtio device. Standard reconfiguration mechanism was used to
apply this changes.

Also, now 'n_txq' and 'n_rxq' are always the real numbers of queues
in the device.

Signed-off-by: Ilya Maximets <i.maximets@samsung.com>
Signed-off-by: Daniele Di Proietto <diproiettod@vmware.com>
INSTALL.DPDK-ADVANCED.md
NEWS
lib/dpif-netdev.c
lib/netdev-dpdk.c
vswitchd/vswitch.xml