net/virtio-user: add unsupported features mask
authorMarvin Liu <yong.liu@intel.com>
Mon, 2 Jul 2018 13:56:36 +0000 (21:56 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 2 Jul 2018 23:35:58 +0000 (01:35 +0200)
commit7c66ff6144b0c1759e3afd959830a1ae2f9331f5
treeb034e7fe78e68ce066b5ab8b66ef732ff3748628
parent9f233f54aa556978f2a022505b50d1d3d485cbcf
net/virtio-user: add unsupported features mask

This patch introduces unsupported features mask for virtio-user device.
For virtio-user server mode, when reconnecting virtio-user will retrieve
vhost device features as base and then unmask unsupported features.

Signed-off-by: Marvin Liu <yong.liu@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