diff options
author | Yi Zou <yi.zou@intel.com> | 2009-08-31 08:33:20 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-09-01 04:24:33 -0400 |
commit | 6fa382af61338908e5713234bcee598423f661c3 (patch) | |
tree | 9e9b257689ebe67759c294661656ccfa03480c46 /net/dcb | |
parent | 7114323b1761bdf787ed79323a4a13f787878295 (diff) |
dcbnl: Add netlink attributes for setapp/getapp to dcbnl
Add defines for dcbnl netlink attributes to support netlink message passing of
setapp/getapp in dcbnl.
Signed-off-by: Yi Zou <yi.zou@intel.com>
Acked-by: Peter P Waskiewicz Jr <peter.p.waskiewicz.jr@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/dcb')
-rw-r--r-- | net/dcb/dcbnl.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/net/dcb/dcbnl.c b/net/dcb/dcbnl.c index 8379496de82b..4046468b219e 100644 --- a/net/dcb/dcbnl.c +++ b/net/dcb/dcbnl.c | |||
@@ -64,6 +64,7 @@ static struct nla_policy dcbnl_rtnl_policy[DCB_ATTR_MAX + 1] = { | |||
64 | [DCB_ATTR_CAP] = {.type = NLA_NESTED}, | 64 | [DCB_ATTR_CAP] = {.type = NLA_NESTED}, |
65 | [DCB_ATTR_PFC_STATE] = {.type = NLA_U8}, | 65 | [DCB_ATTR_PFC_STATE] = {.type = NLA_U8}, |
66 | [DCB_ATTR_BCN] = {.type = NLA_NESTED}, | 66 | [DCB_ATTR_BCN] = {.type = NLA_NESTED}, |
67 | [DCB_ATTR_APP] = {.type = NLA_NESTED}, | ||
67 | }; | 68 | }; |
68 | 69 | ||
69 | /* DCB priority flow control to User Priority nested attributes */ | 70 | /* DCB priority flow control to User Priority nested attributes */ |
@@ -158,6 +159,13 @@ static struct nla_policy dcbnl_bcn_nest[DCB_BCN_ATTR_MAX + 1] = { | |||
158 | [DCB_BCN_ATTR_ALL] = {.type = NLA_FLAG}, | 159 | [DCB_BCN_ATTR_ALL] = {.type = NLA_FLAG}, |
159 | }; | 160 | }; |
160 | 161 | ||
162 | /* DCB APP nested attributes. */ | ||
163 | static struct nla_policy dcbnl_app_nest[DCB_APP_ATTR_MAX + 1] = { | ||
164 | [DCB_APP_ATTR_IDTYPE] = {.type = NLA_U8}, | ||
165 | [DCB_APP_ATTR_ID] = {.type = NLA_U16}, | ||
166 | [DCB_APP_ATTR_PRIORITY] = {.type = NLA_U8}, | ||
167 | }; | ||
168 | |||
161 | /* standard netlink reply call */ | 169 | /* standard netlink reply call */ |
162 | static int dcbnl_reply(u8 value, u8 event, u8 cmd, u8 attr, u32 pid, | 170 | static int dcbnl_reply(u8 value, u8 event, u8 cmd, u8 attr, u32 pid, |
163 | u32 seq, u16 flags) | 171 | u32 seq, u16 flags) |