[SCSI] bfa: fix prli retry issues
authorJing Huang <huangj@brocade.com>
Fri, 9 Jul 2010 02:52:00 +0000 (19:52 -0700)
committerJames Bottomley <James.Bottomley@suse.de>
Tue, 27 Jul 2010 17:04:11 +0000 (12:04 -0500)
commit41188cf5a60a24bf54df5be70142f0928f413788
tree92a8ee6812b90188c238400c73306da14e58677c
parentc507341713114e2510ad7621088b359367adf1ce
[SCSI] bfa: fix prli retry issues

Add a max retry limit for PRLI retries. Max retry limit (5) is same as used
in rport PLOGI. Once the retries are exhausted, invoke rport offline so that
existing logic of rport re-discovery can kick-in. Also fixed a bug in rport.c
where one less retry was happening.

Signed-off-by: Jing Huang <huangj@brocade.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
drivers/scsi/bfa/fcpim.c
drivers/scsi/bfa/fcs_rport.h
drivers/scsi/bfa/include/fcs/bfa_fcs_fcpim.h
drivers/scsi/bfa/rport.c