Skip to content
Snippets Groups Projects
Commit fe36cbe0 authored by Michael S. Tsirkin's avatar Michael S. Tsirkin
Browse files

virtio_net: clear MTU when out of range


virtio attempts to clear the MTU feature bit if the value is out of the
supported range, but this has no real effect since FEATURES_OK has
already been set.

Fix this up by checking the MTU in the new validate callback.

Fixes: 14de9d11 ("virtio-net: Add initial MTU advice feature")
Signed-off-by: default avatarMichael S. Tsirkin <mst@redhat.com>
parent 404123c2
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment