powerpc/8xx: Fix regression introduced by cache coherency rewrite
[linux-2.6/linux-acpi-2.6/ibm-acpi-2.6.git] / include / linux / net_dropmon.h
blob0e2e100c44a275f719377d7c0e2ad113743d404d
1 #ifndef __NET_DROPMON_H
2 #define __NET_DROPMON_H
4 #include <linux/types.h>
5 #include <linux/netlink.h>
7 struct net_dm_drop_point {
8 __u8 pc[8];
9 __u32 count;
12 #define NET_DM_CFG_VERSION 0
13 #define NET_DM_CFG_ALERT_COUNT 1
14 #define NET_DM_CFG_ALERT_DELAY 2
15 #define NET_DM_CFG_MAX 3
17 struct net_dm_config_entry {
18 __u32 type;
19 __u64 data __attribute__((aligned(8)));
22 struct net_dm_config_msg {
23 __u32 entries;
24 struct net_dm_config_entry options[0];
27 struct net_dm_alert_msg {
28 __u32 entries;
29 struct net_dm_drop_point points[0];
32 struct net_dm_user_msg {
33 union {
34 struct net_dm_config_msg user;
35 struct net_dm_alert_msg alert;
36 } u;
40 /* These are the netlink message types for this protocol */
42 enum {
43 NET_DM_CMD_UNSPEC = 0,
44 NET_DM_CMD_ALERT,
45 NET_DM_CMD_CONFIG,
46 NET_DM_CMD_START,
47 NET_DM_CMD_STOP,
48 _NET_DM_CMD_MAX,
51 #define NET_DM_CMD_MAX (_NET_DM_CMD_MAX - 1)
54 * Our group identifiers
56 #define NET_DM_GRP_ALERT 1
57 #endif