diff options
author | Barak Witkowski <barak@broadcom.com> | 2012-06-25 21:31:19 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-06-27 04:20:13 -0400 |
commit | 2e499d3cc13365a87815266dda59904dcb8c8d6c (patch) | |
tree | b9f0e8b8a4356d8beb112cf76b0b97789eb335c3 /drivers/scsi/bnx2fc/bnx2fc.h | |
parent | 747cf6ed3dbf6200af761f5384893c3b621a484c (diff) |
bnx2x, bnx2fc, bnx2i, cnic: Add statistics support and FCoE capabilities advertisement
1. When FCoE offload driver is registered, copy its capabilities to the chip
scratchpad.
2. Copy FCoE/iSCSI MAC addresses in aligned manner to chip scratchpad.
3. Add FCoE/iSCSI statistics collection support
Signed-off-by: Barak Witkowski <barak@broadcom.com>
Signed-off-by: Eilon Greenstein <eilong@broadcom.com>
Signed-off-by: Eddie Wai <eddie.wai@broadcom.com>
Signed-off-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: Bhanu Prakash Gollapudi <bprakash@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/scsi/bnx2fc/bnx2fc.h')
-rw-r--r-- | drivers/scsi/bnx2fc/bnx2fc.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/scsi/bnx2fc/bnx2fc.h b/drivers/scsi/bnx2fc/bnx2fc.h index 0578fa0dc14b..42969e8a45bd 100644 --- a/drivers/scsi/bnx2fc/bnx2fc.h +++ b/drivers/scsi/bnx2fc/bnx2fc.h | |||
@@ -59,6 +59,7 @@ | |||
59 | #include "57xx_hsi_bnx2fc.h" | 59 | #include "57xx_hsi_bnx2fc.h" |
60 | #include "bnx2fc_debug.h" | 60 | #include "bnx2fc_debug.h" |
61 | #include "../../net/ethernet/broadcom/cnic_if.h" | 61 | #include "../../net/ethernet/broadcom/cnic_if.h" |
62 | #include "../../net/ethernet/broadcom/bnx2x/bnx2x_mfw_req.h" | ||
62 | #include "bnx2fc_constants.h" | 63 | #include "bnx2fc_constants.h" |
63 | 64 | ||
64 | #define BNX2FC_NAME "bnx2fc" | 65 | #define BNX2FC_NAME "bnx2fc" |
@@ -84,6 +85,8 @@ | |||
84 | #define BNX2FC_NUM_MAX_SESS 1024 | 85 | #define BNX2FC_NUM_MAX_SESS 1024 |
85 | #define BNX2FC_NUM_MAX_SESS_LOG (ilog2(BNX2FC_NUM_MAX_SESS)) | 86 | #define BNX2FC_NUM_MAX_SESS_LOG (ilog2(BNX2FC_NUM_MAX_SESS)) |
86 | 87 | ||
88 | #define BNX2FC_MAX_NPIV 256 | ||
89 | |||
87 | #define BNX2FC_MAX_OUTSTANDING_CMNDS 2048 | 90 | #define BNX2FC_MAX_OUTSTANDING_CMNDS 2048 |
88 | #define BNX2FC_CAN_QUEUE BNX2FC_MAX_OUTSTANDING_CMNDS | 91 | #define BNX2FC_CAN_QUEUE BNX2FC_MAX_OUTSTANDING_CMNDS |
89 | #define BNX2FC_ELSTM_XIDS BNX2FC_CAN_QUEUE | 92 | #define BNX2FC_ELSTM_XIDS BNX2FC_CAN_QUEUE |
@@ -206,6 +209,7 @@ struct bnx2fc_hba { | |||
206 | struct fcoe_statistics_params *stats_buffer; | 209 | struct fcoe_statistics_params *stats_buffer; |
207 | dma_addr_t stats_buf_dma; | 210 | dma_addr_t stats_buf_dma; |
208 | struct completion stat_req_done; | 211 | struct completion stat_req_done; |
212 | struct fcoe_capabilities fcoe_cap; | ||
209 | 213 | ||
210 | /*destroy handling */ | 214 | /*destroy handling */ |
211 | struct timer_list destroy_timer; | 215 | struct timer_list destroy_timer; |