scsi: lpfc: Fix crash during Hardware error recovery on SLI3 adapters
if REG_VPI fails, the driver was incorrectly issuing INIT_VFI (a SLI4 command) on a SLI3 adapter. Signed-off-by: Dick Kennedy <dick.kennedy@broadcom.com> Signed-off-by: James Smart <james.smart@broadcom.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:
parent
d11f54b7d1
commit
5d181531bc
@ -8371,11 +8371,17 @@ lpfc_cmpl_reg_new_vport(struct lpfc_hba *phba, LPFC_MBOXQ_t *pmb)
|
|||||||
spin_lock_irq(shost->host_lock);
|
spin_lock_irq(shost->host_lock);
|
||||||
vport->fc_flag |= FC_VPORT_NEEDS_REG_VPI;
|
vport->fc_flag |= FC_VPORT_NEEDS_REG_VPI;
|
||||||
spin_unlock_irq(shost->host_lock);
|
spin_unlock_irq(shost->host_lock);
|
||||||
if (vport->port_type == LPFC_PHYSICAL_PORT
|
if (mb->mbxStatus == MBX_NOT_FINISHED)
|
||||||
&& !(vport->fc_flag & FC_LOGO_RCVD_DID_CHNG))
|
break;
|
||||||
lpfc_issue_init_vfi(vport);
|
if ((vport->port_type == LPFC_PHYSICAL_PORT) &&
|
||||||
else
|
!(vport->fc_flag & FC_LOGO_RCVD_DID_CHNG)) {
|
||||||
|
if (phba->sli_rev == LPFC_SLI_REV4)
|
||||||
|
lpfc_issue_init_vfi(vport);
|
||||||
|
else
|
||||||
|
lpfc_initial_flogi(vport);
|
||||||
|
} else {
|
||||||
lpfc_initial_fdisc(vport);
|
lpfc_initial_fdisc(vport);
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user