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/cnic_if.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/cnic_if.h')
-rw-r--r-- | drivers/net/cnic_if.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/drivers/net/cnic_if.h b/drivers/net/cnic_if.h index 9f44e0ffe003..e01b49ee3591 100644 --- a/drivers/net/cnic_if.h +++ b/drivers/net/cnic_if.h | |||
@@ -12,8 +12,8 @@ | |||
12 | #ifndef CNIC_IF_H | 12 | #ifndef CNIC_IF_H |
13 | #define CNIC_IF_H | 13 | #define CNIC_IF_H |
14 | 14 | ||
15 | #define CNIC_MODULE_VERSION "2.2.12" | 15 | #define CNIC_MODULE_VERSION "2.2.13" |
16 | #define CNIC_MODULE_RELDATE "Jan 03, 2011" | 16 | #define CNIC_MODULE_RELDATE "Jan 31, 2011" |
17 | 17 | ||
18 | #define CNIC_ULP_RDMA 0 | 18 | #define CNIC_ULP_RDMA 0 |
19 | #define CNIC_ULP_ISCSI 1 | 19 | #define CNIC_ULP_ISCSI 1 |
@@ -159,6 +159,9 @@ struct cnic_eth_dev { | |||
159 | u32 drv_state; | 159 | u32 drv_state; |
160 | #define CNIC_DRV_STATE_REGD 0x00000001 | 160 | #define CNIC_DRV_STATE_REGD 0x00000001 |
161 | #define CNIC_DRV_STATE_USING_MSIX 0x00000002 | 161 | #define CNIC_DRV_STATE_USING_MSIX 0x00000002 |
162 | #define CNIC_DRV_STATE_NO_ISCSI_OOO 0x00000004 | ||
163 | #define CNIC_DRV_STATE_NO_ISCSI 0x00000008 | ||
164 | #define CNIC_DRV_STATE_NO_FCOE 0x00000010 | ||
162 | u32 chip_id; | 165 | u32 chip_id; |
163 | u32 max_kwqe_pending; | 166 | u32 max_kwqe_pending; |
164 | struct pci_dev *pdev; | 167 | struct pci_dev *pdev; |
@@ -176,6 +179,7 @@ struct cnic_eth_dev { | |||
176 | u32 fcoe_init_cid; | 179 | u32 fcoe_init_cid; |
177 | u16 iscsi_l2_client_id; | 180 | u16 iscsi_l2_client_id; |
178 | u16 iscsi_l2_cid; | 181 | u16 iscsi_l2_cid; |
182 | u8 iscsi_mac[ETH_ALEN]; | ||
179 | 183 | ||
180 | int num_irq; | 184 | int num_irq; |
181 | struct cnic_irq irq_arr[MAX_CNIC_VEC]; | 185 | struct cnic_irq irq_arr[MAX_CNIC_VEC]; |