net/virtio-user: fix multiple queue for vhost-kernel
authorTiwei Bie <tiwei.bie@intel.com>
Fri, 21 Sep 2018 12:52:42 +0000 (20:52 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 27 Sep 2018 23:41:03 +0000 (01:41 +0200)
commit21b90f790a5fd41875610440b888015aa9b0a460
tree87fc553b11ea9b0412d96c86019ee233001fddc8
parent2f270595c05d8161f50524a967a1c1e3f5e9958e
net/virtio-user: fix multiple queue for vhost-kernel

The multiple queue support in vhost-kernel is broken because
the dev->vhostfd is only available for vhost-user. We should
always try to enable queue pairs when it's not in server mode.

Fixes: 201a41651715 ("net/virtio-user: fix multiple queues fail in server mode")
Cc: stable@dpdk.org
Signed-off-by: Tiwei Bie <tiwei.bie@intel.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
drivers/net/virtio/virtio_user/virtio_user_dev.c