scsi: lpfc: Qualify ndlp discovery state when processing RSCN
authorJustin Tee <justin.tee@broadcom.com>
Wed, 12 Jul 2023 18:05:14 +0000 (11:05 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Sun, 23 Jul 2023 20:17:07 +0000 (16:17 -0400)
commit377d7abadd74abc62c415578cda9f5e0a070abbd
treec2453a06c7927c02a58faab6594d64366745eb4f
parent869ab8b8a31c2e5f44e84df7812f7696d7331fc8
scsi: lpfc: Qualify ndlp discovery state when processing RSCN

Conditionalize when to put an ndlp into recovery mode when processing
RSCNs.  As long as an ndlp state is beyond a PLOGI issue and has been
mapped to a transport layer before, the ndlp qualifies to be put into
recovery mode.  Otherwise, treat the ndlp rport normally through the
discovery engine.

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