]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
scsi: lpfc: Reduce pointer chasing when accessing vmid_flag
authorJustin Tee <justin.tee@broadcom.com>
Thu, 12 Feb 2026 21:30:00 +0000 (13:30 -0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 24 Feb 2026 18:06:51 +0000 (13:06 -0500)
For all FLOGI completions, the vport->phba->pport pointer is actually a
pointer to the original vport pointer because FLOGIs always complete on
the physical lpfc_vport object.  Thus, we can reduce the
vport->phba->pport->vmid_flag dereference to simply vport->vmid_flag.

Signed-off-by: Justin Tee <justin.tee@broadcom.com>
Link: https://patch.msgid.link/20260212213008.149873-6-justintee8345@gmail.com
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/lpfc/lpfc_els.c

index 5ea7cc5f16af0529887dcdae0cfd045d6e28e325..0af69c447c77d903b0f642a08eb7ab6ad0b06608 100644 (file)
@@ -1107,7 +1107,7 @@ stop_rr_fcf_flogi:
                vport->vmid_flag = 0;
        }
        if (sp->cmn.priority_tagging)
-               vport->phba->pport->vmid_flag |= (LPFC_VMID_ISSUE_QFPA |
+               vport->vmid_flag |= (LPFC_VMID_ISSUE_QFPA |
                                                  LPFC_VMID_TYPE_PRIO);
 
        /*