qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [RFC 1/4] virtio-net: reuse MTU related bits from Linux hea


From: Maxime Coquelin
Subject: [Qemu-devel] [RFC 1/4] virtio-net: reuse MTU related bits from Linux header
Date: Tue, 6 Sep 2016 18:11:06 +0200

VIRTIO_NET_F_MTU has been introduced in Linux v4.8-rc1.
Reuse its define and the related virtio_net_config struct
update.

Cc: Michael S. Tsirkin <address@hidden>
Cc: Aaron Conole <address@hidden>
Signed-off-by: Maxime Coquelin <address@hidden>
---
 include/standard-headers/linux/virtio_net.h | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/include/standard-headers/linux/virtio_net.h 
b/include/standard-headers/linux/virtio_net.h
index a78f33e..30ff249 100644
--- a/include/standard-headers/linux/virtio_net.h
+++ b/include/standard-headers/linux/virtio_net.h
@@ -35,6 +35,7 @@
 #define VIRTIO_NET_F_CSUM      0       /* Host handles pkts w/ partial csum */
 #define VIRTIO_NET_F_GUEST_CSUM        1       /* Guest handles pkts w/ 
partial csum */
 #define VIRTIO_NET_F_CTRL_GUEST_OFFLOADS 2 /* Dynamic offload configuration. */
+#define VIRTIO_NET_F_MTU       3       /* Initial MTU advice */
 #define VIRTIO_NET_F_MAC       5       /* Host has given MAC address. */
 #define VIRTIO_NET_F_GUEST_TSO4        7       /* Guest can handle TSOv4 in. */
 #define VIRTIO_NET_F_GUEST_TSO6        8       /* Guest can handle TSOv6 in. */
@@ -73,6 +74,8 @@ struct virtio_net_config {
         * Legal values are between 1 and 0x8000
         */
        uint16_t max_virtqueue_pairs;
+       /* Default maximum transmit unit advice */
+       uint16_t mtu;
 } QEMU_PACKED;
 
 /*
-- 
2.7.4




reply via email to

[Prev in Thread] Current Thread [Next in Thread]