OSDN Git Service

virtio-net: Add MTU feature support
authorMaxime Coquelin <maxime.coquelin@redhat.com>
Sat, 10 Dec 2016 15:30:38 +0000 (16:30 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 10 Jan 2017 05:02:53 +0000 (07:02 +0200)
commita93e599d4a04c3cf7edcf5a24f3397e27431c027
treeb3581d92a18b5029347f0083919c90b09a952a74
parent45a368ad4f6135f32be5c051823a060eada0ac12
virtio-net: Add MTU feature support

This patch allows advising guest with host MTU's by setting
host_mtu parameter.

If VIRTIO_NET_F_MTU has been successfully negotiated, MTU
value is passed to the backend.

Cc: Michael S. Tsirkin <mst@redhat.com>
Cc: Aaron Conole <aconole@redhat.com
Signed-off-by: Maxime Coquelin <maxime.coquelin@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/net/virtio-net.c
include/hw/virtio/virtio-net.h