summaryrefslogtreecommitdiff
path: root/vswitchd
diff options
context:
space:
mode:
authorIlya Maximets <i.maximets@samsung.com>2016-07-08 16:52:37 +0300
committerDaniele Di Proietto <diproiettod@vmware.com>2016-07-08 15:27:21 -0700
commit81acebdaaf27048dbd6cb602a04b6cd0108c9423 (patch)
tree7a12c8771f9e36e5a4c3de30f174f99f239f90c6 /vswitchd
parent62b87eab7de505242a5e52e9b625f69403e2e708 (diff)
downloadopenvswitch-81acebdaaf27048dbd6cb602a04b6cd0108c9423.tar.gz
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>
Diffstat (limited to 'vswitchd')
-rw-r--r--vswitchd/vswitch.xml3
1 files changed, 2 insertions, 1 deletions
diff --git a/vswitchd/vswitch.xml b/vswitchd/vswitch.xml
index 072fef464..fed6f56b1 100644
--- a/vswitchd/vswitch.xml
+++ b/vswitchd/vswitch.xml
@@ -2346,12 +2346,13 @@
Only PMD netdevs support these options.
</p>
- <column name="options" key="n_rxqs"
+ <column name="options" key="n_rxq"
type='{"type": "integer", "minInteger": 1}'>
<p>
Specifies the maximum number of rx queues to be created for PMD
netdev. If not specified or specified to 0, one rx queue will
be created by default.
+ Not supported by DPDK vHost interfaces.
</p>
</column>
</group>