diff options
author | Patrick McHardy <kaber@trash.net> | 2013-04-17 02:47:06 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-04-19 14:57:58 -0400 |
commit | 4ae9fbee1690848a6aace1e0193ab27e981e35a5 (patch) | |
tree | 10390445b761524709f15fb21db79ad83d1b3d91 /include | |
parent | cd1df525da59c64244d27b4548ff5d132489488a (diff) |
netlink: add RX/TX-ring support to netlink diag
Based on AF_PACKET.
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r-- | include/uapi/linux/netlink_diag.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/uapi/linux/netlink_diag.h b/include/uapi/linux/netlink_diag.h index 88009a31cd06..4e31db4eea41 100644 --- a/include/uapi/linux/netlink_diag.h +++ b/include/uapi/linux/netlink_diag.h | |||
@@ -25,9 +25,18 @@ struct netlink_diag_msg { | |||
25 | __u32 ndiag_cookie[2]; | 25 | __u32 ndiag_cookie[2]; |
26 | }; | 26 | }; |
27 | 27 | ||
28 | struct netlink_diag_ring { | ||
29 | __u32 ndr_block_size; | ||
30 | __u32 ndr_block_nr; | ||
31 | __u32 ndr_frame_size; | ||
32 | __u32 ndr_frame_nr; | ||
33 | }; | ||
34 | |||
28 | enum { | 35 | enum { |
29 | NETLINK_DIAG_MEMINFO, | 36 | NETLINK_DIAG_MEMINFO, |
30 | NETLINK_DIAG_GROUPS, | 37 | NETLINK_DIAG_GROUPS, |
38 | NETLINK_DIAG_RX_RING, | ||
39 | NETLINK_DIAG_TX_RING, | ||
31 | 40 | ||
32 | __NETLINK_DIAG_MAX, | 41 | __NETLINK_DIAG_MAX, |
33 | }; | 42 | }; |
@@ -38,5 +47,6 @@ enum { | |||
38 | 47 | ||
39 | #define NDIAG_SHOW_MEMINFO 0x00000001 /* show memory info of a socket */ | 48 | #define NDIAG_SHOW_MEMINFO 0x00000001 /* show memory info of a socket */ |
40 | #define NDIAG_SHOW_GROUPS 0x00000002 /* show groups of a netlink socket */ | 49 | #define NDIAG_SHOW_GROUPS 0x00000002 /* show groups of a netlink socket */ |
50 | #define NDIAG_SHOW_RING_CFG 0x00000004 /* show ring configuration */ | ||
41 | 51 | ||
42 | #endif | 52 | #endif |