netdev-dpdk: vhost: Fix txq enabling in the absence of notifications.
authorIlya Maximets <i.maximets@samsung.com>
Tue, 29 Mar 2016 06:20:41 +0000 (09:20 +0300)
committerDaniele Di Proietto <diproiettod@vmware.com>
Tue, 29 Mar 2016 20:46:11 +0000 (13:46 -0700)
commitf3ea2ad27fd076735fdb78286980749bb12fe1ce
treed682e9f6e0ec8da5816b7b6304983a30635bd7be
parent910596583d6746877899a9b41c00143842c97f73
netdev-dpdk: vhost: Fix txq enabling in the absence of notifications.

According to QEMU documentation (docs/specs/vhost-user.txt) one queue
should be enabled initially. More queues are enabled dynamically, by
sending message VHOST_USER_SET_VRING_ENABLE.

Currently all queues in OVS disabled by default. This breaks above
specification. So, queue #0 should be enabled by default to support
QEMU versions less than 2.5 and fix probable issues if QEMU will not
send VHOST_USER_SET_VRING_ENABLE for queue #0 according to documentation.
Also this will fix currently broken vhost-cuse support in OVS.

Fixes: 585a5beaa2a4 ("netdev-dpdk: vhost-user: Fix sending packets to
                      queues not enabled by guest.")
Reported-by: Mauricio Vasquez B <mauricio.vasquezbernal@studenti.polito.it>
Signed-off-by: Ilya Maximets <i.maximets@samsung.com>
Acked-by: Flavio Leitner <fbl@sysclose.org>
Acked-by: Daniele Di Proietto <diproiettod@vmware.com>
lib/netdev-dpdk.c