From cdfe576eb101850fcee60f2b18685d9a7abe6e01 Mon Sep 17 00:00:00 2001 From: Sebastien Boeuf Date: Fri, 30 Aug 2019 11:55:28 -0700 Subject: [PATCH] vm-virtio: vhost-user-net: Set the right set of features The available features are masked with the backend features, therefore the available features should be the one used when calling into set_features() API. Signed-off-by: Sebastien Boeuf --- vm-virtio/src/vhost_user/net.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vm-virtio/src/vhost_user/net.rs b/vm-virtio/src/vhost_user/net.rs index 3d0d95311..e23108111 100644 --- a/vm-virtio/src/vhost_user/net.rs +++ b/vm-virtio/src/vhost_user/net.rs @@ -73,7 +73,7 @@ impl<'a> Net { // Set features back is required by the vhost crate mechanism, since the // later vhost call will check if features is filled in master before execution. vhost_user_net - .set_features(backend_features) + .set_features(avail_features) .map_err(Error::VhostUserSetFeatures)?; let mut acked_features = 0;