scsi: lpfc: Reinitialize an NPIV's VMID data structures after FDISC
authorJustin Tee <justin.tee@broadcom.com>
Thu, 7 Dec 2023 22:40:37 +0000 (14:40 -0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 14 Dec 2023 03:17:56 +0000 (22:17 -0500)
commit8dc8eb89f4df74593ba4bf30c3d31a0fc6d3ea47
tree02ee952918fa6c7bd1966b84ae00f2e9eab30f53
parent0653d40935f7cc125bfab34fd702559c61ce7560
scsi: lpfc: Reinitialize an NPIV's VMID data structures after FDISC

After a follow up FDISC cmpl, an NPIV's VMID data structures are not
updated.

Fix by calling lpfc_reinit_vmid and copying the physical port's vmid_flag
to the NPIV's vmid_flag in the NPIV registration cmpl code path.

Signed-off-by: Justin Tee <justin.tee@broadcom.com>
Link: https://lore.kernel.org/r/20231207224039.35466-3-justintee8345@gmail.com
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/lpfc/lpfc_els.c