scsi: libfc: retry PRLI if we cannot analyse the payload
authorHannes Reinecke <hare@suse.com>
Sun, 7 Oct 2018 08:35:37 +0000 (10:35 +0200)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 16 Oct 2018 03:53:37 +0000 (23:53 -0400)
commit0b4aafc332e49e143d3ee1c2460367ba0f07da1a
tree583117d8a22a255de77fd7e15b579bdf9a12015f
parentaad1271a4845f948b2721c0ab243baa74786916e
scsi: libfc: retry PRLI if we cannot analyse the payload

When we fail to analyse the payload of a PRLI response we should reset
the state machine to retry the PRLI; eventually we will be getting a
proper frame.  Not doing so will result in a stuck state machine and the
port never to be presented to the systsm.

Suggested-by: Chad Dupuis <chad.dupuis@cavium.com>
Signed-off-by: Hannes Reinecke <hare@suse.com>
Reviewed-by: Arun Easi <arun.easi@cavium.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/libfc/fc_rport.c