scsi: lpfc: Reinitialize internal VMID data structures after FLOGI completion
authorJustin Tee <justin.tee@broadcom.com>
Mon, 9 Jan 2023 23:33:14 +0000 (15:33 -0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 12 Jan 2023 05:03:15 +0000 (00:03 -0500)
commitf1d2337d3e58955ecbbf392ba09fabb3e72db945
tree044a47335376a8c1e8c558e433a70bf31d660f18
parent21681b81b9ae548c5dae7ae00d931197a27f480c
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>
drivers/scsi/lpfc/lpfc_crtn.h
drivers/scsi/lpfc/lpfc_els.c
drivers/scsi/lpfc/lpfc_vmid.c