]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
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)
commit70b468d41b822e4b510761120be3924df966a62d
treec0d6d3efd8d552ec120d17511e86aa967fae77ae
parentf8c599ad90f53dbe2246935f90ff49693c26b34f
scsi: lpfc: Reduce pointer chasing when accessing vmid_flag

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