mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2025-03-20 07:58:55 +00:00
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 <sebastien.boeuf@intel.com>
This commit is contained in:
parent
bc42420583
commit
cdfe576eb1
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user