net/virtio_user: fix first queue pair without multiqueue
authorJianfeng Tan <jianfeng.tan@intel.com>
Tue, 27 Sep 2016 19:11:04 +0000 (19:11 +0000)
committerYuanhan Liu <yuanhan.liu@linux.intel.com>
Wed, 28 Sep 2016 00:18:39 +0000 (02:18 +0200)
commit33a290899dd2b6e2e26e8e5c33d08979f8315d18
tree9c0f4e5b8d952dcf065a8c544c221accf21db7cd
parent2304dd73d287cc8ce30fdd9abd2f99f6af890dd4
net/virtio_user: fix first queue pair without multiqueue

When virtio_user is used with OVS-DPDK (with mq disabled), it cannot
receive any packets. This is because no queue is enabled at all when
mq is disabled.

To fix it, we should consistently make sure the 1st queue is enabled,
which is also the behaviour QEMU takes.

Fixes: 37a7eb2ae816 ("net/virtio-user: add device emulation layer")

Reported-by: Ning Li <lining18@jd.com>
Signed-off-by: Jianfeng Tan <jianfeng.tan@intel.com>
Acked-by: Yuanhan Liu <yuanhan.liu@linux.intel.com>
drivers/net/virtio/virtio_user/virtio_user_dev.c