aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/broadcom/bnx2x/bnx2x.h
diff options
context:
space:
mode:
authorDmitry Kravkov <dmitry@broadcom.com>2012-03-18 06:33:43 -0400
committerDavid S. Miller <davem@davemloft.net>2012-03-19 16:53:07 -0400
commit9e62e912e56742af7eb7e0eeba3c7af4bb2f8537 (patch)
treead3f5843da71faccdf633dc8011e7dc647593da8 /drivers/net/ethernet/broadcom/bnx2x/bnx2x.h
parent910b220290a4568ebf7ecc368bd3d1d8236d2335 (diff)
bnx2x: changed iscsi/fcoe mac init and macros
This includes changes in macros to better distinguish between the two protocols, and slightly changed the way their macs are set. Notice this file contains string print lines with more than 80 characters, as to not break prints. Signed-off-by: Dmitry Kravkov <dmitry@broadcom.com> Signed-off-by: Yuval Mintz <yuvalmin@broadcom.com> Signed-off-by: Eilon Greenstein <eilong@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/broadcom/bnx2x/bnx2x.h')
-rw-r--r--drivers/net/ethernet/broadcom/bnx2x/bnx2x.h16
1 files changed, 12 insertions, 4 deletions
diff --git a/drivers/net/ethernet/broadcom/bnx2x/bnx2x.h b/drivers/net/ethernet/broadcom/bnx2x/bnx2x.h
index f534bf132373..562cec34932d 100644
--- a/drivers/net/ethernet/broadcom/bnx2x/bnx2x.h
+++ b/drivers/net/ethernet/broadcom/bnx2x/bnx2x.h
@@ -2117,14 +2117,22 @@ void bnx2x_set_ethtool_ops(struct net_device *netdev);
2117void bnx2x_notify_link_changed(struct bnx2x *bp); 2117void bnx2x_notify_link_changed(struct bnx2x *bp);
2118 2118
2119 2119
2120#define BNX2X_MF_PROTOCOL(bp) \ 2120#define BNX2X_MF_SD_PROTOCOL(bp) \
2121 ((bp)->mf_config[BP_VN(bp)] & FUNC_MF_CFG_PROTOCOL_MASK) 2121 ((bp)->mf_config[BP_VN(bp)] & FUNC_MF_CFG_PROTOCOL_MASK)
2122 2122
2123#ifdef BCM_CNIC 2123#ifdef BCM_CNIC
2124#define BNX2X_IS_MF_PROTOCOL_ISCSI(bp) \ 2124#define BNX2X_IS_MF_SD_PROTOCOL_ISCSI(bp) \
2125 (BNX2X_MF_PROTOCOL(bp) == FUNC_MF_CFG_PROTOCOL_ISCSI) 2125 (BNX2X_MF_SD_PROTOCOL(bp) == FUNC_MF_CFG_PROTOCOL_ISCSI)
2126 2126
2127#define IS_MF_ISCSI_SD(bp) (IS_MF_SD(bp) && BNX2X_IS_MF_PROTOCOL_ISCSI(bp)) 2127#define BNX2X_IS_MF_SD_PROTOCOL_FCOE(bp) \
2128 (BNX2X_MF_SD_PROTOCOL(bp) == FUNC_MF_CFG_PROTOCOL_FCOE)
2129
2130#define IS_MF_ISCSI_SD(bp) (IS_MF_SD(bp) && BNX2X_IS_MF_SD_PROTOCOL_ISCSI(bp))
2131#define IS_MF_FCOE_SD(bp) (IS_MF_SD(bp) && BNX2X_IS_MF_SD_PROTOCOL_FCOE(bp))
2132
2133#define IS_MF_STORAGE_SD(bp) (IS_MF_SD(bp) && \
2134 (BNX2X_IS_MF_SD_PROTOCOL_ISCSI(bp) || \
2135 BNX2X_IS_MF_SD_PROTOCOL_FCOE(bp)))
2128#endif 2136#endif
2129 2137
2130#endif /* bnx2x.h */ 2138#endif /* bnx2x.h */