scsi: lpfc: Allow lpfc_plogi_confirm_nport() logic to execute for Fabric nodes
authorJustin Tee <justin.tee@broadcom.com>
Wed, 31 Jan 2024 18:51:00 +0000 (10:51 -0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 6 Feb 2024 01:51:35 +0000 (20:51 -0500)
commite1b3acad0d7bb3b7134eebe6a35b2dbc72c52b32
tree5b83adb5cb58b60a92d3718a84ad3121ee0330bb
parentb76beac1a4f57f0f049476d4271710b3c0d05f91
scsi: lpfc: Allow lpfc_plogi_confirm_nport() logic to execute for Fabric nodes

Remove the early return NLP_FABRIC check in lpfc_plogi_confirm_nport()
because it is possible for switch domain controllers to change WWPN.

As a result, allow lpfc_plogi_confirm_nport() to detect that a new ndlp
should be initialized in such cases.  The old ndlp object will be cleaned
up when dev_loss_tmo callbk executes.

Signed-off-by: Justin Tee <justin.tee@broadcom.com>
Link: https://lore.kernel.org/r/20240131185112.149731-6-justintee8345@gmail.com
Reviewed-by: Himanshu Madhani <himanshu.madhani@oracle.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/lpfc/lpfc_els.c