diff options
Diffstat (limited to 'include/linux/net_dropmon.h')
-rw-r--r-- | include/linux/net_dropmon.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/net_dropmon.h b/include/linux/net_dropmon.h index 0217fb81a630..e8a8b5c50ed0 100644 --- a/include/linux/net_dropmon.h +++ b/include/linux/net_dropmon.h | |||
@@ -2,12 +2,20 @@ | |||
2 | #define __NET_DROPMON_H | 2 | #define __NET_DROPMON_H |
3 | 3 | ||
4 | #include <linux/netlink.h> | 4 | #include <linux/netlink.h> |
5 | #include <linux/types.h> | ||
5 | 6 | ||
6 | struct net_dm_drop_point { | 7 | struct net_dm_drop_point { |
7 | __u8 pc[8]; | 8 | __u8 pc[8]; |
8 | __u32 count; | 9 | __u32 count; |
9 | }; | 10 | }; |
10 | 11 | ||
12 | #define is_drop_point_hw(x) do {\ | ||
13 | int ____i, ____j;\ | ||
14 | for (____i = 0; ____i < 8; i ____i++)\ | ||
15 | ____j |= x[____i];\ | ||
16 | ____j;\ | ||
17 | } while (0) | ||
18 | |||
11 | #define NET_DM_CFG_VERSION 0 | 19 | #define NET_DM_CFG_VERSION 0 |
12 | #define NET_DM_CFG_ALERT_COUNT 1 | 20 | #define NET_DM_CFG_ALERT_COUNT 1 |
13 | #define NET_DM_CFG_ALERT_DELAY 2 | 21 | #define NET_DM_CFG_ALERT_DELAY 2 |