diff options
author | Dmitry Kravkov <dmitry@broadcom.com> | 2010-10-05 23:26:40 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-10-06 17:10:36 -0400 |
commit | fb3bff178e722fe88b5ab02319c9636da0980e25 (patch) | |
tree | 137b9073e0fb18d26c4aafce714631b25494c95a /drivers/net/bnx2x/bnx2x.h | |
parent | 6f7aeeec7e142caf30e3b420c2411ad85f23b9f5 (diff) |
bnx2x: rename MF related fields
MF (multi-function) mode supported not only by 57711E (E1H) devices,
but also by coming 57712E, then we use more generic names.
Signed-off-by: Dmitry Kravkov <dmitry@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.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/bnx2x/bnx2x.h b/drivers/net/bnx2x/bnx2x.h index 8b053e0c00ab..d7b24f9e7939 100644 --- a/drivers/net/bnx2x/bnx2x.h +++ b/drivers/net/bnx2x/bnx2x.h | |||
@@ -933,9 +933,9 @@ struct bnx2x { | |||
933 | u32 vn_weight_sum; | 933 | u32 vn_weight_sum; |
934 | 934 | ||
935 | u32 mf_config; | 935 | u32 mf_config; |
936 | u16 e1hov; | 936 | u16 mf_ov; |
937 | u8 e1hmf; | 937 | u8 mf_mode; |
938 | #define IS_E1HMF(bp) (bp->e1hmf != 0) | 938 | #define IS_MF(bp) (bp->mf_mode != 0) |
939 | 939 | ||
940 | u8 wol; | 940 | u8 wol; |
941 | 941 | ||
@@ -1127,7 +1127,7 @@ struct bnx2x { | |||
1127 | #define RSS_IPV6_CAP 0x0004 | 1127 | #define RSS_IPV6_CAP 0x0004 |
1128 | #define RSS_IPV6_TCP_CAP 0x0008 | 1128 | #define RSS_IPV6_TCP_CAP 0x0008 |
1129 | 1129 | ||
1130 | #define BNX2X_MAX_QUEUES(bp) (IS_E1HMF(bp) ? (MAX_CONTEXT/E1HVN_MAX) \ | 1130 | #define BNX2X_MAX_QUEUES(bp) (IS_MF(bp) ? (MAX_CONTEXT/E1HVN_MAX) \ |
1131 | : MAX_CONTEXT) | 1131 | : MAX_CONTEXT) |
1132 | #define BNX2X_NUM_QUEUES(bp) (bp->num_queues) | 1132 | #define BNX2X_NUM_QUEUES(bp) (bp->num_queues) |
1133 | #define is_multi(bp) (BNX2X_NUM_QUEUES(bp) > 1) | 1133 | #define is_multi(bp) (BNX2X_NUM_QUEUES(bp) > 1) |