Commit 6fa382af61338908e5713234bcee598423f661c3

Authored by Yi Zou
Committed by David S. Miller
1 parent 7114323b17

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>

Showing 1 changed file with 8 additions and 0 deletions Side-by-side Diff

... ... @@ -64,6 +64,7 @@
64 64 [DCB_ATTR_CAP] = {.type = NLA_NESTED},
65 65 [DCB_ATTR_PFC_STATE] = {.type = NLA_U8},
66 66 [DCB_ATTR_BCN] = {.type = NLA_NESTED},
  67 + [DCB_ATTR_APP] = {.type = NLA_NESTED},
67 68 };
68 69  
69 70 /* DCB priority flow control to User Priority nested attributes */
... ... @@ -156,6 +157,13 @@
156 157 [DCB_BCN_ATTR_RI] = {.type = NLA_U32},
157 158 [DCB_BCN_ATTR_C] = {.type = NLA_U32},
158 159 [DCB_BCN_ATTR_ALL] = {.type = NLA_FLAG},
  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},
159 167 };
160 168  
161 169 /* standard netlink reply call */