aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/bfa/fcs_rport.h
diff options
context:
space:
mode:
authorJing Huang <huangj@brocade.com>2010-07-08 22:52:00 -0400
committerJames Bottomley <James.Bottomley@suse.de>2010-07-27 13:04:11 -0400
commit41188cf5a60a24bf54df5be70142f0928f413788 (patch)
tree92a8ee6812b90188c238400c73306da14e58677c /drivers/scsi/bfa/fcs_rport.h
parentc507341713114e2510ad7621088b359367adf1ce (diff)
[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 9c8d1d292380..5242ee0f03c6 100644
--- a/drivers/scsi/bfa/fcs_rport.h
+++ b/drivers/scsi/bfa/fcs_rport.h
@@ -24,6 +24,8 @@
24 24
25#include <fcs/bfa_fcs_rport.h> 25#include <fcs/bfa_fcs_rport.h>
26 26
27#define BFA_FCS_RPORT_MAX_RETRIES (5)
28
27void bfa_fcs_rport_uf_recv(struct bfa_fcs_rport_s *rport, struct fchs_s *fchs, 29void bfa_fcs_rport_uf_recv(struct bfa_fcs_rport_s *rport, struct fchs_s *fchs,
28 u16 len); 30 u16 len);
29void bfa_fcs_rport_scn(struct bfa_fcs_rport_s *rport); 31void bfa_fcs_rport_scn(struct bfa_fcs_rport_s *rport);