diff options
author | Maxime Coquelin <maxime.coquelin@redhat.com> | 2016-12-10 16:30:38 +0100 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2017-01-10 07:02:53 +0200 |
commit | a93e599d4a04c3cf7edcf5a24f3397e27431c027 (patch) | |
tree | b3581d92a18b5029347f0083919c90b09a952a74 /include | |
parent | 45a368ad4f6135f32be5c051823a060eada0ac12 (diff) | |
download | qemu-a93e599d4a04c3cf7edcf5a24f3397e27431c027.zip qemu-a93e599d4a04c3cf7edcf5a24f3397e27431c027.tar.gz qemu-a93e599d4a04c3cf7edcf5a24f3397e27431c027.tar.bz2 |
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')
-rw-r--r-- | include/hw/virtio/virtio-net.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/hw/virtio/virtio-net.h b/include/hw/virtio/virtio-net.h index 0ced975..8ea56a8 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 */ |