scsi: lpfc: Fix GFT_ID and PRLI logic for RSCN
authorJames Smart <jsmart2021@gmail.com>
Mon, 10 Sep 2018 17:30:41 +0000 (10:30 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 12 Sep 2018 00:37:32 +0000 (20:37 -0400)
commit01a8aed6a009625282b6265880f6b20cbd7a9c70
treee14578d71f4fc0144a9fd0823c92879918ee26cc
parenta64a290ec6d78ffe7541ebc044ee69e328bfe259
scsi: lpfc: Fix GFT_ID and PRLI logic for RSCN

Driver only sends NVME PRLI to a device that also supports FCP.  This resuls
in remote ports that don't have fc_remote_ports created for them. The driver
is clearing the nlp_fc4_type for a ndlp at the wrong time.

Fix by moving the nlp_fc4_type clearing to the discovery engine in the
DEVICE_RECOVERY state. Also ensure that rport registration is done for all
nlp_fc4_types.

Signed-off-by: Dick Kennedy <dick.kennedy@broadcom.com>
Signed-off-by: James Smart <james.smart@broadcom.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/lpfc/lpfc_ct.c
drivers/scsi/lpfc/lpfc_hbadisc.c
drivers/scsi/lpfc/lpfc_nportdisc.c