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