summary refs log tree commit diff stats
path: root/include/hw
diff options
context:
space:
mode:
authorMaxime Coquelin <maxime.coquelin@redhat.com>2016-12-10 16:30:38 +0100
committerMichael S. Tsirkin <mst@redhat.com>2017-01-10 07:02:53 +0200
commita93e599d4a04c3cf7edcf5a24f3397e27431c027 (patch)
treeb3581d92a18b5029347f0083919c90b09a952a74 /include/hw
parent45a368ad4f6135f32be5c051823a060eada0ac12 (diff)
downloadfocaccia-qemu-a93e599d4a04c3cf7edcf5a24f3397e27431c027.tar.gz
focaccia-qemu-a93e599d4a04c3cf7edcf5a24f3397e27431c027.zip
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>
Diffstat (limited to 'include/hw')
-rw-r--r--include/hw/virtio/virtio-net.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/hw/virtio/virtio-net.h b/include/hw/virtio/virtio-net.h
index 0ced975c57..8ea56a8f60 100644
--- a/include/hw/virtio/virtio-net.h
+++ b/include/hw/virtio/virtio-net.h
@@ -36,6 +36,7 @@ typedef struct virtio_net_conf
     int32_t txburst;
     char *tx;
     uint16_t rx_queue_size;
+    uint16_t mtu;
 } virtio_net_conf;
 
 /* Maximum packet size we can receive from tap device: header + 64k */