mirror of
https://github.com/torvalds/linux.git
synced 2026-06-05 13:06:59 +02:00
scsi: lpfc: Reinitialize an NPIV's VMID data structures after FDISC
[ Upstream commit 8dc8eb89f4 ]
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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
40ac9c17b6
commit
6d38434f42
|
|
@ -11110,6 +11110,14 @@ lpfc_cmpl_reg_new_vport(struct lpfc_hba *phba, LPFC_MBOXQ_t *pmb)
|
|||
lpfc_nlp_put(ndlp);
|
||||
|
||||
mempool_free(pmb, phba->mbox_mem_pool);
|
||||
|
||||
/* reinitialize the VMID datastructure before returning.
|
||||
* this is specifically for vport
|
||||
*/
|
||||
if (lpfc_is_vmid_enabled(phba))
|
||||
lpfc_reinit_vmid(vport);
|
||||
vport->vmid_flag = vport->phba->pport->vmid_flag;
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user