aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/bnx2x/bnx2x.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.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.h')
-rw-r--r--drivers/net/bnx2x/bnx2x.h23
1 files changed, 19 insertions, 4 deletions
diff --git a/drivers/net/bnx2x/bnx2x.h b/drivers/net/bnx2x/bnx2x.h
index f14c6ed62bbb..77d6c8d6d86b 100644
--- a/drivers/net/bnx2x/bnx2x.h
+++ b/drivers/net/bnx2x/bnx2x.h
@@ -22,15 +22,17 @@
22 * (you will need to reboot afterwards) */ 22 * (you will need to reboot afterwards) */
23/* #define BNX2X_STOP_ON_ERROR */ 23/* #define BNX2X_STOP_ON_ERROR */
24 24
25#define DRV_MODULE_VERSION "1.62.00-2" 25#define DRV_MODULE_VERSION "1.62.00-3"
26#define DRV_MODULE_RELDATE "2010/12/13" 26#define DRV_MODULE_RELDATE "2010/12/21"
27#define BNX2X_BC_VER 0x040200 27#define BNX2X_BC_VER 0x040200
28 28
29#define BNX2X_MULTI_QUEUE 29#define BNX2X_MULTI_QUEUE
30 30
31#define BNX2X_NEW_NAPI 31#define BNX2X_NEW_NAPI
32 32
33 33#if defined(CONFIG_DCB)
34#define BCM_DCB
35#endif
34#if defined(CONFIG_CNIC) || defined(CONFIG_CNIC_MODULE) 36#if defined(CONFIG_CNIC) || defined(CONFIG_CNIC_MODULE)
35#define BCM_CNIC 1 37#define BCM_CNIC 1
36#include "../cnic_if.h" 38#include "../cnic_if.h"
@@ -1186,7 +1188,20 @@ struct bnx2x {
1186 /* LLDP params */ 1188 /* LLDP params */
1187 struct bnx2x_config_lldp_params lldp_config_params; 1189 struct bnx2x_config_lldp_params lldp_config_params;
1188 1190
1189 /* DCBX params */ 1191 /* DCB support on/off */
1192 u16 dcb_state;
1193#define BNX2X_DCB_STATE_OFF 0
1194#define BNX2X_DCB_STATE_ON 1
1195
1196 /* DCBX engine mode */
1197 int dcbx_enabled;
1198#define BNX2X_DCBX_ENABLED_OFF 0
1199#define BNX2X_DCBX_ENABLED_ON_NEG_OFF 1
1200#define BNX2X_DCBX_ENABLED_ON_NEG_ON 2
1201#define BNX2X_DCBX_ENABLED_INVALID (-1)
1202
1203 bool dcbx_mode_uset;
1204
1190 struct bnx2x_config_dcbx_params dcbx_config_params; 1205 struct bnx2x_config_dcbx_params dcbx_config_params;
1191 1206
1192 struct bnx2x_dcbx_port_params dcbx_port_params; 1207 struct bnx2x_dcbx_port_params dcbx_port_params;