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 0e2e100c44a2..3ceb0cc1bc78 100644 --- a/include/linux/net_dropmon.h +++ b/include/linux/net_dropmon.h  | |||
| @@ -3,12 +3,20 @@ | |||
| 3 | 3 | ||
| 4 | #include <linux/types.h> | 4 | #include <linux/types.h> | 
| 5 | #include <linux/netlink.h> | 5 | #include <linux/netlink.h> | 
| 6 | #include <linux/types.h> | ||
| 6 | 7 | ||
| 7 | struct net_dm_drop_point { | 8 | struct net_dm_drop_point { | 
| 8 | __u8 pc[8]; | 9 | __u8 pc[8]; | 
| 9 | __u32 count; | 10 | __u32 count; | 
| 10 | }; | 11 | }; | 
| 11 | 12 | ||
| 13 | #define is_drop_point_hw(x) do {\ | ||
| 14 | int ____i, ____j;\ | ||
| 15 | for (____i = 0; ____i < 8; i ____i++)\ | ||
| 16 | ____j |= x[____i];\ | ||
| 17 | ____j;\ | ||
| 18 | } while (0) | ||
| 19 | |||
| 12 | #define NET_DM_CFG_VERSION 0 | 20 | #define NET_DM_CFG_VERSION 0 | 
| 13 | #define NET_DM_CFG_ALERT_COUNT 1 | 21 | #define NET_DM_CFG_ALERT_COUNT 1 | 
| 14 | #define NET_DM_CFG_ALERT_DELAY 2 | 22 | #define NET_DM_CFG_ALERT_DELAY 2 | 
