diff options
author | Glenn Elliott <gelliott@cs.unc.edu> | 2012-03-04 19:47:13 -0500 |
---|---|---|
committer | Glenn Elliott <gelliott@cs.unc.edu> | 2012-03-04 19:47:13 -0500 |
commit | c71c03bda1e86c9d5198c5d83f712e695c4f2a1e (patch) | |
tree | ecb166cb3e2b7e2adb3b5e292245fefd23381ac8 /include/net/dcbnl.h | |
parent | ea53c912f8a86a8567697115b6a0d8152beee5c8 (diff) | |
parent | 6a00f206debf8a5c8899055726ad127dbeeed098 (diff) |
Merge branch 'mpi-master' into wip-k-fmlpwip-k-fmlp
Conflicts:
litmus/sched_cedf.c
Diffstat (limited to 'include/net/dcbnl.h')
-rw-r--r-- | include/net/dcbnl.h | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/include/net/dcbnl.h b/include/net/dcbnl.h index b36ac7e0914d..e5983c9053dc 100644 --- a/include/net/dcbnl.h +++ b/include/net/dcbnl.h | |||
@@ -20,11 +20,33 @@ | |||
20 | #ifndef __NET_DCBNL_H__ | 20 | #ifndef __NET_DCBNL_H__ |
21 | #define __NET_DCBNL_H__ | 21 | #define __NET_DCBNL_H__ |
22 | 22 | ||
23 | #include <linux/dcbnl.h> | ||
24 | |||
25 | struct dcb_app_type { | ||
26 | char name[IFNAMSIZ]; | ||
27 | struct dcb_app app; | ||
28 | struct list_head list; | ||
29 | }; | ||
30 | |||
31 | u8 dcb_setapp(struct net_device *, struct dcb_app *); | ||
32 | u8 dcb_getapp(struct net_device *, struct dcb_app *); | ||
33 | |||
23 | /* | 34 | /* |
24 | * Ops struct for the netlink callbacks. Used by DCB-enabled drivers through | 35 | * Ops struct for the netlink callbacks. Used by DCB-enabled drivers through |
25 | * the netdevice struct. | 36 | * the netdevice struct. |
26 | */ | 37 | */ |
27 | struct dcbnl_rtnl_ops { | 38 | struct dcbnl_rtnl_ops { |
39 | /* IEEE 802.1Qaz std */ | ||
40 | int (*ieee_getets) (struct net_device *, struct ieee_ets *); | ||
41 | int (*ieee_setets) (struct net_device *, struct ieee_ets *); | ||
42 | int (*ieee_getpfc) (struct net_device *, struct ieee_pfc *); | ||
43 | int (*ieee_setpfc) (struct net_device *, struct ieee_pfc *); | ||
44 | int (*ieee_getapp) (struct net_device *, struct dcb_app *); | ||
45 | int (*ieee_setapp) (struct net_device *, struct dcb_app *); | ||
46 | int (*ieee_peer_getets) (struct net_device *, struct ieee_ets *); | ||
47 | int (*ieee_peer_getpfc) (struct net_device *, struct ieee_pfc *); | ||
48 | |||
49 | /* CEE std */ | ||
28 | u8 (*getstate)(struct net_device *); | 50 | u8 (*getstate)(struct net_device *); |
29 | u8 (*setstate)(struct net_device *, u8); | 51 | u8 (*setstate)(struct net_device *, u8); |
30 | void (*getpermhwaddr)(struct net_device *, u8 *); | 52 | void (*getpermhwaddr)(struct net_device *, u8 *); |
@@ -50,6 +72,21 @@ struct dcbnl_rtnl_ops { | |||
50 | void (*setbcnrp)(struct net_device *, int, u8); | 72 | void (*setbcnrp)(struct net_device *, int, u8); |
51 | u8 (*setapp)(struct net_device *, u8, u16, u8); | 73 | u8 (*setapp)(struct net_device *, u8, u16, u8); |
52 | u8 (*getapp)(struct net_device *, u8, u16); | 74 | u8 (*getapp)(struct net_device *, u8, u16); |
75 | u8 (*getfeatcfg)(struct net_device *, int, u8 *); | ||
76 | u8 (*setfeatcfg)(struct net_device *, int, u8); | ||
77 | |||
78 | /* DCBX configuration */ | ||
79 | u8 (*getdcbx)(struct net_device *); | ||
80 | u8 (*setdcbx)(struct net_device *, u8); | ||
81 | |||
82 | /* peer apps */ | ||
83 | int (*peer_getappinfo)(struct net_device *, struct dcb_peer_app_info *, | ||
84 | u16 *); | ||
85 | int (*peer_getapptable)(struct net_device *, struct dcb_app *); | ||
86 | |||
87 | /* CEE peer */ | ||
88 | int (*cee_peer_getpg) (struct net_device *, struct cee_pg *); | ||
89 | int (*cee_peer_getpfc) (struct net_device *, struct cee_pfc *); | ||
53 | }; | 90 | }; |
54 | 91 | ||
55 | #endif /* __NET_DCBNL_H__ */ | 92 | #endif /* __NET_DCBNL_H__ */ |