aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/bnx2x/bnx2x_dcb.h
diff options
context:
space:
mode:
authorShmulik Ravid <shmulikr@broadcom.com>2010-12-30 01:27:03 -0500
committerDavid S. Miller <davem@davemloft.net>2010-12-31 13:50:55 -0500
commit785b9b1aebcb748fb7627ad4c12dffb7f4f91b55 (patch)
tree44d6a8d19df9fd7d4f68998ed4176ea75ad3068a /drivers/net/bnx2x/bnx2x_dcb.h
parentea45fe4e176a42d2396878f530cfdc8265bef37b (diff)
bnx2x: adding dcbnl support
Adding dcbnl implementation to bnx2x allowing users to manage the embedded DCBX engine. This patch is dependent on the following patches: [net-next-2.6 PATCH 1/3] dcbnl: add support for ieee8021Qaz attributes [net-next-2.6 PATCH 2/3] dcbnl: add appliction tlv handlers [net-next-2.6 PATCH 3/3] net_dcb: add application notifiers Signed-off-by: Shmulik Ravid <shmulikr@broadcom.com> Signed-off-by: Eilon Greenstein <eilong@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/bnx2x/bnx2x_dcb.h')
-rw-r--r--drivers/net/bnx2x/bnx2x_dcb.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/drivers/net/bnx2x/bnx2x_dcb.h b/drivers/net/bnx2x/bnx2x_dcb.h
index 8dea56b511f5..f650f98e4092 100644
--- a/drivers/net/bnx2x/bnx2x_dcb.h
+++ b/drivers/net/bnx2x/bnx2x_dcb.h
@@ -51,7 +51,6 @@ struct bnx2x_dcbx_pfc_params {
51}; 51};
52 52
53struct bnx2x_dcbx_port_params { 53struct bnx2x_dcbx_port_params {
54 u32 dcbx_enabled;
55 struct bnx2x_dcbx_pfc_params pfc; 54 struct bnx2x_dcbx_pfc_params pfc;
56 struct bnx2x_dcbx_pg_params ets; 55 struct bnx2x_dcbx_pg_params ets;
57 struct bnx2x_dcbx_app_params app; 56 struct bnx2x_dcbx_app_params app;
@@ -88,8 +87,6 @@ struct bnx2x_admin_priority_app_table {
88 * DCBX protocol configuration parameters. 87 * DCBX protocol configuration parameters.
89 ******************************************************************************/ 88 ******************************************************************************/
90struct bnx2x_config_dcbx_params { 89struct bnx2x_config_dcbx_params {
91 u32 dcb_enable;
92 u32 admin_dcbx_enable;
93 u32 overwrite_settings; 90 u32 overwrite_settings;
94 u32 admin_dcbx_version; 91 u32 admin_dcbx_version;
95 u32 admin_ets_enable; 92 u32 admin_ets_enable;
@@ -182,6 +179,7 @@ struct bnx2x;
182void bnx2x_dcb_init_intmem_pfc(struct bnx2x *bp); 179void bnx2x_dcb_init_intmem_pfc(struct bnx2x *bp);
183void bnx2x_dcbx_update(struct work_struct *work); 180void bnx2x_dcbx_update(struct work_struct *work);
184void bnx2x_dcbx_init_params(struct bnx2x *bp); 181void bnx2x_dcbx_init_params(struct bnx2x *bp);
182void bnx2x_dcbx_set_state(struct bnx2x *bp, bool dcb_on, u32 dcbx_enabled);
185 183
186enum { 184enum {
187 BNX2X_DCBX_STATE_NEG_RECEIVED = 0x1, 185 BNX2X_DCBX_STATE_NEG_RECEIVED = 0x1,
@@ -190,4 +188,9 @@ enum {
190}; 188};
191void bnx2x_dcbx_set_params(struct bnx2x *bp, u32 state); 189void bnx2x_dcbx_set_params(struct bnx2x *bp, u32 state);
192 190
191/* DCB netlink */
192#ifdef BCM_DCB
193extern const struct dcbnl_rtnl_ops bnx2x_dcbnl_ops;
194#endif /* BCM_DCB */
195
193#endif /* BNX2X_DCB_H */ 196#endif /* BNX2X_DCB_H */