diff options
author | Justin Tee <justin.tee@broadcom.com> | 2023-01-09 15:33:14 -0800 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2023-01-12 00:03:15 -0500 |
commit | f1d2337d3e58955ecbbf392ba09fabb3e72db945 (patch) | |
tree | 044a47335376a8c1e8c558e433a70bf31d660f18 /drivers/scsi/lpfc/lpfc_els.c | |
parent | 21681b81b9ae548c5dae7ae00d931197a27f480c (diff) | |
download | linux-f1d2337d3e58955ecbbf392ba09fabb3e72db945.tar.gz linux-f1d2337d3e58955ecbbf392ba09fabb3e72db945.tar.bz2 linux-f1d2337d3e58955ecbbf392ba09fabb3e72db945.zip |
scsi: lpfc: Reinitialize internal VMID data structures after FLOGI completion
After enabling VMID, an issue LIP test was erasing fabric switch VMID
information.
Introduce a lpfc_reinit_vmid() routine, which reinitializes all VMID data
structures upon FLOGI completion in fabric topology.
Signed-off-by: Justin Tee <justin.tee@broadcom.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/lpfc/lpfc_els.c')
-rw-r--r-- | drivers/scsi/lpfc/lpfc_els.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/scsi/lpfc/lpfc_els.c b/drivers/scsi/lpfc/lpfc_els.c index 4d3b8f2036d2..264a3db6cd69 100644 --- a/drivers/scsi/lpfc/lpfc_els.c +++ b/drivers/scsi/lpfc/lpfc_els.c @@ -1123,6 +1123,9 @@ stop_rr_fcf_flogi: if (sp->cmn.priority_tagging) vport->phba->pport->vmid_flag |= (LPFC_VMID_ISSUE_QFPA | LPFC_VMID_TYPE_PRIO); + /* reinitialize the VMID datastructure before returning */ + if (lpfc_is_vmid_enabled(phba)) + lpfc_reinit_vmid(vport); /* * Address a timing race with dev_loss. If dev_loss is active on |