devices: vhost: user: vmm: Allow MTU negotiation

The non-vhost counterpart already provides this feature flag,
specifying it in the vhost-user implementation will allow
vhost-user net devices to negotiate MTUs too.

TEST=tools/presubmit

Change-Id: If83929671218c45d3e37f782a66b438f9fef5147
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/4003960
Commit-Queue: Kevin Hamacher <hamacher@google.com>
Reviewed-by: Daniel Verkamp <dverkamp@chromium.org>
This commit is contained in:
Kevin Hamacher 2022-11-04 11:15:00 +01:00 committed by crosvm LUCI
parent 9206613bdc
commit 02bc918e74

View file

@ -31,7 +31,8 @@ impl VhostUserVirtioDevice {
| 1 << virtio_net::VIRTIO_NET_F_HOST_TSO4 | 1 << virtio_net::VIRTIO_NET_F_HOST_TSO4
| 1 << virtio_net::VIRTIO_NET_F_HOST_UFO | 1 << virtio_net::VIRTIO_NET_F_HOST_UFO
| 1 << virtio_net::VIRTIO_NET_F_MAC | 1 << virtio_net::VIRTIO_NET_F_MAC
| 1 << virtio_net::VIRTIO_NET_F_MQ; | 1 << virtio_net::VIRTIO_NET_F_MQ
| 1 << virtio_net::VIRTIO_NET_F_MTU;
let allow_protocol_features = let allow_protocol_features =
VhostUserProtocolFeatures::MQ | VhostUserProtocolFeatures::CONFIG; VhostUserProtocolFeatures::MQ | VhostUserProtocolFeatures::CONFIG;