net/virtio-user: fix device features for server mode
authorTiwei Bie <tiwei.bie@intel.com>
Mon, 29 Oct 2018 05:28:06 +0000 (13:28 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 5 Nov 2018 14:01:25 +0000 (15:01 +0100)
commitbb97d2dd96c0425b0cd9a58749de252ddf675b47
tree8c0abc0f86f8c5585b3e8c0d1fa31d04422b4185
parent74dc6746a0f195907ec487df7de18a856108482f
net/virtio-user: fix device features for server mode

We need to save the supported frontend features (which won't be
announced by vhost backend), otherwise we will lost them when the
connection to vhost-user backend is established 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
drivers/net/virtio/virtio_user/virtio_user_dev.h
drivers/net/virtio/virtio_user_ethdev.c