scsi: lpfc: Reset link or adapter instead of doing infinite nameserver PLOGI retry
authorJames Smart <jsmart2021@gmail.com>
Tue, 23 Oct 2018 20:41:04 +0000 (13:41 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 7 Nov 2018 01:42:50 +0000 (20:42 -0500)
commit5cca2ab1b3a8316f94a987a5b23f1ea149bd3ef8
tree20ed6bfbbfd44d5e9ccf2a1ffdaa4df468f7e147
parent30e196cacefdd9a38c857caed23cefc9621bc5c1
scsi: lpfc: Reset link or adapter instead of doing infinite nameserver PLOGI retry

Currently, PLOGI failures are infinitely delayed/retried.  There have
been some fabric situations where the PLOGI's were to the nameserver
and it stopped responding. The retries would never clear up.  A better
resolution in this situation is to retry a couple of times, then drop
the link and reinit. This brings back connectivity to the nameserver.

Signed-off-by: Dick Kennedy <dick.kennedy@broadcom.com>
Signed-off-by: James Smart <jsmart2021@gmail.com>
Reviewed-by: Hannes Reinecke <hare@suse.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/lpfc/lpfc_crtn.h
drivers/scsi/lpfc/lpfc_els.c