lpfc 8.3.31: Reregister VPI for SLI3 after cable moved to new Saturn port
Subsystems (2)
PATCH 14/20 lpfc 8.3.31: Reregister VPI for SLI3 after cable moved to new Saturn port
Reregister VPI for SLI3 after cable moved to new Saturn port
Signed-off-by Alex Iannicelli <[email protected]>
Signed-off-by James Smart <[email protected]>
---
lpfc_els.c | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-)
drivers/scsi/lpfc/lpfc_els.c +8 -5
@@ -707,14 +707,17 @@ lpfc_cmpl_els_flogi_fabric(struct lpfc_vlpfc_sli4_unreg_all_rpis (vport);lpfc_mbx_unreg_vpi (vport);spin_lock_irq (shost->host_lock); - vport->fc_flag |=FC_VPORT_NEEDS_REG_VPI ; -/* -* If VPI is unreged, driver need to do INIT_VPI -* before re-registering -*/ vport->fc_flag |=FC_VPORT_NEEDS_INIT_VPI ;spin_unlock_irq (shost->host_lock); } + +/* +* For SLI3 and SLI4, the VPI needs to be reregistered in +* response to this fabric parameter change event. +*/ +spin_lock_irq (shost->host_lock); + vport->fc_flag |=FC_VPORT_NEEDS_REG_VPI ; +spin_unlock_irq (shost->host_lock); }else if ((phba->sli_rev ==LPFC_SLI_REV4 ) && !(vport->fc_flag &FC_VPORT_NEEDS_REG_VPI )) {/*