diff options
author | Vladislav Zolotarov <vladz@broadcom.com> | 2011-01-31 09:39:17 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-01-31 23:44:46 -0500 |
commit | 2ba451421b23636c45fabfa522858c5c124b3673 (patch) | |
tree | fc576f3ac8a064b50747533522940f05e39f70c1 /drivers/net/bnx2x/bnx2x.h | |
parent | 0c838ff1ade71162775afffd9e5c6478a60bdca6 (diff) |
bnx2x, cnic: Consolidate iSCSI/FCoE shared mem logic in bnx2x
Move all shared mem code to bnx2x to avoid code duplication. bnx2x now
performs:
- Read the FCoE and iSCSI max connection information.
- Read the iSCSI and FCoE MACs from NPAR configuration in shmem.
- Block the CNIC for the current function if there is neither FCoE nor
iSCSI valid configuration by returning NULL from bnx2x_cnic_probe().
Signed-off-by: Vladislav Zolotarov <vladz@broadcom.com>
Signed-off-by: Eilon Greenstein <eilong@broadcom.com>
Signed-off-by: Michael Chan <mchan@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 | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/net/bnx2x/bnx2x.h b/drivers/net/bnx2x/bnx2x.h index 04fb72b923b2..ff87ec33d00e 100644 --- a/drivers/net/bnx2x/bnx2x.h +++ b/drivers/net/bnx2x/bnx2x.h | |||
@@ -976,8 +976,12 @@ struct bnx2x { | |||
976 | #define MF_FUNC_DIS 0x1000 | 976 | #define MF_FUNC_DIS 0x1000 |
977 | #define FCOE_MACS_SET 0x2000 | 977 | #define FCOE_MACS_SET 0x2000 |
978 | #define NO_FCOE_FLAG 0x4000 | 978 | #define NO_FCOE_FLAG 0x4000 |
979 | #define NO_ISCSI_OOO_FLAG 0x8000 | ||
980 | #define NO_ISCSI_FLAG 0x10000 | ||
979 | 981 | ||
980 | #define NO_FCOE(bp) ((bp)->flags & NO_FCOE_FLAG) | 982 | #define NO_FCOE(bp) ((bp)->flags & NO_FCOE_FLAG) |
983 | #define NO_ISCSI(bp) ((bp)->flags & NO_ISCSI_FLAG) | ||
984 | #define NO_ISCSI_OOO(bp) ((bp)->flags & NO_ISCSI_OOO_FLAG) | ||
981 | 985 | ||
982 | int pf_num; /* absolute PF number */ | 986 | int pf_num; /* absolute PF number */ |
983 | int pfid; /* per-path PF number */ | 987 | int pfid; /* per-path PF number */ |
@@ -1125,7 +1129,6 @@ struct bnx2x { | |||
1125 | u16 cnic_kwq_pending; | 1129 | u16 cnic_kwq_pending; |
1126 | u16 cnic_spq_pending; | 1130 | u16 cnic_spq_pending; |
1127 | struct mutex cnic_mutex; | 1131 | struct mutex cnic_mutex; |
1128 | u8 iscsi_mac[ETH_ALEN]; | ||
1129 | u8 fip_mac[ETH_ALEN]; | 1132 | u8 fip_mac[ETH_ALEN]; |
1130 | #endif | 1133 | #endif |
1131 | 1134 | ||