aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/broadcom/bnx2x/bnx2x.h
diff options
context:
space:
mode:
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 */