diff options
author | James Smart <james.smart@emulex.com> | 2012-03-01 22:35:23 -0500 |
---|---|---|
committer | James Bottomley <JBottomley@Parallels.com> | 2012-03-27 03:26:30 -0400 |
commit | 97f2ecf1f401d689d4036f64c244fad3b39e5e0a (patch) | |
tree | 5f4cbe8b63ad61a02c00fc5e2076743f95e9aafe /drivers/scsi/lpfc/lpfc_init.c | |
parent | 5c1db2accd4b3e21aa7440526af9d2d0ccf5241c (diff) |
[SCSI] lpfc 8.3.30: Fix RPI registered multiple times after HBA reset
Signed-off-by: Alex Iannicelli <alex.iannicelli@emulex.com>
Signed-off-by: James Smart <james.smart@emulex.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers/scsi/lpfc/lpfc_init.c')
-rw-r--r-- | drivers/scsi/lpfc/lpfc_init.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/scsi/lpfc/lpfc_init.c b/drivers/scsi/lpfc/lpfc_init.c index c61508d7a0a1..5b66142dbf56 100644 --- a/drivers/scsi/lpfc/lpfc_init.c +++ b/drivers/scsi/lpfc/lpfc_init.c | |||
@@ -5230,8 +5230,7 @@ lpfc_sli4_create_rpi_hdr(struct lpfc_hba *phba) | |||
5230 | * rpi is normalized to a zero base because the physical rpi is | 5230 | * rpi is normalized to a zero base because the physical rpi is |
5231 | * port based. | 5231 | * port based. |
5232 | */ | 5232 | */ |
5233 | curr_rpi_range = phba->sli4_hba.next_rpi - | 5233 | curr_rpi_range = phba->sli4_hba.next_rpi; |
5234 | phba->sli4_hba.max_cfg_param.rpi_base; | ||
5235 | spin_unlock_irq(&phba->hbalock); | 5234 | spin_unlock_irq(&phba->hbalock); |
5236 | 5235 | ||
5237 | /* | 5236 | /* |
@@ -6146,7 +6145,6 @@ lpfc_sli4_read_config(struct lpfc_hba *phba) | |||
6146 | phba->sli4_hba.next_xri = phba->sli4_hba.max_cfg_param.xri_base; | 6145 | phba->sli4_hba.next_xri = phba->sli4_hba.max_cfg_param.xri_base; |
6147 | phba->vpi_base = phba->sli4_hba.max_cfg_param.vpi_base; | 6146 | phba->vpi_base = phba->sli4_hba.max_cfg_param.vpi_base; |
6148 | phba->vfi_base = phba->sli4_hba.max_cfg_param.vfi_base; | 6147 | phba->vfi_base = phba->sli4_hba.max_cfg_param.vfi_base; |
6149 | phba->sli4_hba.next_rpi = phba->sli4_hba.max_cfg_param.rpi_base; | ||
6150 | phba->max_vpi = (phba->sli4_hba.max_cfg_param.max_vpi > 0) ? | 6148 | phba->max_vpi = (phba->sli4_hba.max_cfg_param.max_vpi > 0) ? |
6151 | (phba->sli4_hba.max_cfg_param.max_vpi - 1) : 0; | 6149 | (phba->sli4_hba.max_cfg_param.max_vpi - 1) : 0; |
6152 | phba->max_vports = phba->max_vpi; | 6150 | phba->max_vports = phba->max_vpi; |