aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/linux/virtio_net.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/linux/virtio_net.h b/include/linux/virtio_net.h
index 245eda829aa8..63b2461a40f1 100644
--- a/include/linux/virtio_net.h
+++ b/include/linux/virtio_net.h
@@ -24,6 +24,7 @@
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 */ 25#define VIRTIO_NET_F_STATUS 16 /* virtio_net_config.status available */
26#define VIRTIO_NET_F_CTRL_VQ 17 /* Control channel available */ 26#define VIRTIO_NET_F_CTRL_VQ 17 /* Control channel available */
27#define VIRTIO_NET_F_CTRL_RX 18 /* Control channel RX mode support */
27 28
28#define VIRTIO_NET_S_LINK_UP 1 /* Link is up */ 29#define VIRTIO_NET_S_LINK_UP 1 /* Link is up */
29 30
@@ -77,4 +78,14 @@ typedef __u8 virtio_net_ctrl_ack;
77#define VIRTIO_NET_OK 0 78#define VIRTIO_NET_OK 0
78#define VIRTIO_NET_ERR 1 79#define VIRTIO_NET_ERR 1
79 80
81/*
82 * Control the RX mode, ie. promisucous and allmulti. PROMISC and
83 * ALLMULTI commands require an "out" sg entry containing a 1 byte
84 * state value, zero = disable, non-zero = enable. These commands
85 * are supported with the VIRTIO_NET_F_CTRL_RX feature.
86 */
87#define VIRTIO_NET_CTRL_RX 0
88 #define VIRTIO_NET_CTRL_RX_PROMISC 0
89 #define VIRTIO_NET_CTRL_RX_ALLMULTI 1
90
80#endif /* _LINUX_VIRTIO_NET_H */ 91#endif /* _LINUX_VIRTIO_NET_H */