aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/bfa/fcs_rport.h
diff options
context:
space:
mode:
authorJing Huang <huangj@brocade.com>2010-07-08 19:52:00 -0700
committerJames Bottomley <James.Bottomley@suse.de>2010-07-27 12:04:11 -0500
commit41188cf5a60a24bf54df5be70142f0928f413788 (patch)
tree92a8ee6812b90188c238400c73306da14e58677c /drivers/scsi/bfa/fcs_rport.h
parentc507341713114e2510ad7621088b359367adf1ce (diff)
downloadkernel_samsung_crespo-41188cf5a60a24bf54df5be70142f0928f413788.zip
kernel_samsung_crespo-41188cf5a60a24bf54df5be70142f0928f413788.tar.gz
kernel_samsung_crespo-41188cf5a60a24bf54df5be70142f0928f413788.tar.bz2
[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>
Diffstat (limited to 'drivers/scsi/bfa/fcs_rport.h')
-rw-r--r--drivers/scsi/bfa/fcs_rport.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/scsi/bfa/fcs_rport.h b/drivers/scsi/bfa/fcs_rport.h
index 9c8d1d2..5242ee0 100644
--- a/drivers/scsi/bfa/fcs_rport.h
+++ b/drivers/scsi/bfa/fcs_rport.h
@@ -24,6 +24,8 @@
#include <fcs/bfa_fcs_rport.h>
+#define BFA_FCS_RPORT_MAX_RETRIES (5)
+
void bfa_fcs_rport_uf_recv(struct bfa_fcs_rport_s *rport, struct fchs_s *fchs,
u16 len);
void bfa_fcs_rport_scn(struct bfa_fcs_rport_s *rport);