diff options
author | Jayamohan Kallickal <jayamohank@gmail.com> | 2013-09-28 18:35:54 -0400 |
---|---|---|
committer | James Bottomley <JBottomley@Parallels.com> | 2013-10-25 04:58:09 -0400 |
commit | 68c26a3afc6693d08181c1757f943bd005d03c2f (patch) | |
tree | f9c1d2ac8ca5d643c1f222b7be89c17445639629 /drivers/scsi/be2iscsi/be_mgmt.c | |
parent | d3fea9af00fc69f60a792f5e0ea1e51fabd7c633 (diff) |
[SCSI] be2iscsi: Fix MSIx creation for SKH-R adapter
The MSIx to be created for SKH-R adapter should be based on
eq_count returned by get_fw_config.
Signed-off-by: John Soni Jose <sony.john-n@emulex.com>
Signed-off-by: Jayamohan Kallickal <jayamohan.kallickal@emulex.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers/scsi/be2iscsi/be_mgmt.c')
-rw-r--r-- | drivers/scsi/be2iscsi/be_mgmt.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/scsi/be2iscsi/be_mgmt.c b/drivers/scsi/be2iscsi/be_mgmt.c index 7b0b13f69b69..befeace18257 100644 --- a/drivers/scsi/be2iscsi/be_mgmt.c +++ b/drivers/scsi/be2iscsi/be_mgmt.c | |||
@@ -311,6 +311,17 @@ int mgmt_get_fw_config(struct be_ctrl_info *ctrl, | |||
311 | struct be_fw_cfg *pfw_cfg; | 311 | struct be_fw_cfg *pfw_cfg; |
312 | pfw_cfg = req; | 312 | pfw_cfg = req; |
313 | 313 | ||
314 | if (!is_chip_be2_be3r(phba)) { | ||
315 | phba->fw_config.eqid_count = pfw_cfg->eqid_count; | ||
316 | phba->fw_config.cqid_count = pfw_cfg->cqid_count; | ||
317 | |||
318 | beiscsi_log(phba, KERN_INFO, | ||
319 | BEISCSI_LOG_INIT, | ||
320 | "BG_%d : EQ_Count : %d CQ_Count : %d\n", | ||
321 | phba->fw_config.eqid_count, | ||
322 | phba->fw_config.cqid_count); | ||
323 | } | ||
324 | |||
314 | for (ulp_num = 0; ulp_num < BEISCSI_ULP_COUNT; ulp_num++) | 325 | for (ulp_num = 0; ulp_num < BEISCSI_ULP_COUNT; ulp_num++) |
315 | if (pfw_cfg->ulp[ulp_num].ulp_mode & | 326 | if (pfw_cfg->ulp[ulp_num].ulp_mode & |
316 | BEISCSI_ULP_ISCSI_INI_MODE) | 327 | BEISCSI_ULP_ISCSI_INI_MODE) |