Skip to content

Commit 8dc8eb8

Browse files
Justin Teemartinkpetersen
authored andcommitted
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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Martin K. Petersen <[email protected]>
1 parent 0653d40 commit 8dc8eb8

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

drivers/scsi/lpfc/lpfc_els.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11143,6 +11143,14 @@ lpfc_cmpl_reg_new_vport(struct lpfc_hba *phba, LPFC_MBOXQ_t *pmb)
1114311143
lpfc_nlp_put(ndlp);
1114411144

1114511145
mempool_free(pmb, phba->mbox_mem_pool);
11146+
11147+
/* reinitialize the VMID datastructure before returning.
11148+
* this is specifically for vport
11149+
*/
11150+
if (lpfc_is_vmid_enabled(phba))
11151+
lpfc_reinit_vmid(vport);
11152+
vport->vmid_flag = vport->phba->pport->vmid_flag;
11153+
1114611154
return;
1114711155
}
1114811156

0 commit comments

Comments
 (0)