aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/virtio_net.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/virtio_net.h')
-rw-r--r--include/linux/virtio_net.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/virtio_net.h b/include/linux/virtio_net.h
index 5cdd0aa8bde9..f76bd4a753ef 100644
--- a/include/linux/virtio_net.h
+++ b/include/linux/virtio_net.h
@@ -21,11 +21,16 @@
21#define VIRTIO_NET_F_HOST_ECN 13 /* Host can handle TSO[6] w/ ECN in. */ 21#define VIRTIO_NET_F_HOST_ECN 13 /* Host can handle TSO[6] w/ ECN in. */
22#define VIRTIO_NET_F_HOST_UFO 14 /* Host can handle UFO in. */ 22#define VIRTIO_NET_F_HOST_UFO 14 /* Host can handle UFO in. */
23#define VIRTIO_NET_F_MRG_RXBUF 15 /* Host can merge receive buffers. */ 23#define VIRTIO_NET_F_MRG_RXBUF 15 /* Host can merge receive buffers. */
24#define VIRTIO_NET_F_STATUS 16 /* virtio_net_config.status available */
25
26#define VIRTIO_NET_S_LINK_UP 1 /* Link is up */
24 27
25struct virtio_net_config 28struct virtio_net_config
26{ 29{
27 /* The config defining mac address (if VIRTIO_NET_F_MAC) */ 30 /* The config defining mac address (if VIRTIO_NET_F_MAC) */
28 __u8 mac[6]; 31 __u8 mac[6];
32 /* See VIRTIO_NET_F_STATUS and VIRTIO_NET_S_* above */
33 __u16 status;
29} __attribute__((packed)); 34} __attribute__((packed));
30 35
31/* This is the first element of the scatter-gather list. If you don't 36/* This is the first element of the scatter-gather list. If you don't