Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1358244
| From | Aaron Conole <aconole@redhat.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [RFC v2 -next 1/2] virtio: Start feature MTU support |
| Date | 2016-03-15 22:10 +0100 |
| Message-ID | <rd4o2-7FE-9@gated-at.bofh.it> (permalink) |
| References | <rd4o2-7FE-11@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
This commit adds the feature bit and associated mtu device entry for the
virtio network device. Future commits will make use of these bits to support
negotiated MTU.
Signed-off-by: Aaron Conole <aconole@bytheb.org>
---
v2:
* No change
include/uapi/linux/virtio_net.h | 3 +++
1 file changed, 3 insertions(+)
diff --git a/include/uapi/linux/virtio_net.h b/include/uapi/linux/virtio_net.h
index ec32293..41a6a01 100644
--- a/include/uapi/linux/virtio_net.h
+++ b/include/uapi/linux/virtio_net.h
@@ -55,6 +55,7 @@
#define VIRTIO_NET_F_MQ 22 /* Device supports Receive Flow
* Steering */
#define VIRTIO_NET_F_CTRL_MAC_ADDR 23 /* Set MAC address */
+#define VIRTIO_NET_F_MTU 25 /* Device supports Default MTU Negotiation */
#ifndef VIRTIO_NET_NO_LEGACY
#define VIRTIO_NET_F_GSO 6 /* Host handles pkts w/ any GSO type */
@@ -73,6 +74,8 @@ struct virtio_net_config {
* Legal values are between 1 and 0x8000
*/
__u16 max_virtqueue_pairs;
+ /* Default maximum transmit unit advice */
+ __u16 mtu;
} __attribute__((packed));
/*
--
2.5.0
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
[RFC v2 -next 1/2] virtio: Start feature MTU support Aaron Conole <aconole@redhat.com> - 2016-03-15 22:10 +0100
Re: [RFC v2 -next 1/2] virtio: Start feature MTU support Stephen Hemminger <stephen@networkplumber.org> - 2016-03-16 19:30 +0100
Re: [RFC v2 -next 1/2] virtio: Start feature MTU support "Michael S. Tsirkin" <mst@redhat.com> - 2016-03-16 19:40 +0100
csiph-web