]> git.ipfire.org Git - thirdparty/linux.git/commit
scsi: lpfc: Modify handling of ADISC based on ndlp state and RPI registration
authorJustin Tee <justin.tee@broadcom.com>
Thu, 12 Dec 2024 23:33:03 +0000 (15:33 -0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 2 Jan 2025 20:01:22 +0000 (15:01 -0500)
commitee80d8c2d4ccebed1015f6c9ba6a07c85e149785
tree158da503f1d5e31c3559d072bb09014e33133c22
parentbb33b07ac6e3fede9b54cd8bf83a66dbdc6afe89
scsi: lpfc: Modify handling of ADISC based on ndlp state and RPI registration

In lpfc_check_adisc, remove the requirement that the ndlp object must have
been RPI registered.  Whether or not the ndlp is RPI registered is
unrelated to verifying that the received ADISC is intended for that ndlp
rport object.

After ADISC receipt, there's no need to put the ndlp state into NPR.  Let
the cmpl routines from the actions taken earlier in ADISC handling set the
proper ndlp state.

Also, refactor when a RESUME_RPI mailbox command should be sent.  It should
only be sent if the RPI registered flag is set.

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