mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2025-02-09 03:57:24 +00:00
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:
parent
9206613bdc
commit
02bc918e74
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue