net/virtio-user: fix advertising of protocol features main
authorOlivier Matz <olivier.matz@6wind.com>
Thu, 17 Dec 2020 16:24:57 +0000 (17:24 +0100)
committerOlivier Matz <olivier.matz@6wind.com>
Thu, 17 Dec 2020 17:10:15 +0000 (18:10 +0100)
commitd851d28d2b8047772ddd2937787bb57c8fec0721
tree07fc207f71af3577f7d2bfe1bf5ad18297cf1b36
parent4a5f0f19b8b6f377fd0a536e2a4c3c92d2adae20
net/virtio-user: fix advertising of protocol features

When connected to a vhost-user backend, the flag
VHOST_USER_F_PROTOCOL_FEATURES is not advertised, preventing to do
multiqueue (the VHOST_USER_PROTOCOL_F_MQ protocol feature is ignored by
some backends if the VHOST_USER_F_PROTOCOL_FEATURES feature is not set).

When setting vhost-user features, always advertise this flag.

Fixes: 8e7561054ac7 ("net/virtio: support vhost-user protocol features")
Suggested-by: Maxime Coquelin <maxime.coquelin@redhat.com>
Signed-off-by: Olivier Matz <olivier.matz@6wind.com>
drivers/net/virtio/virtio_user/vhost_user.c