aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/bfa/rport.c
diff options
context:
space:
mode:
authorJing Huang <huangj@brocade.com>2010-07-08 22:50:15 -0400
committerJames Bottomley <James.Bottomley@suse.de>2010-07-27 13:04:08 -0400
commit4f1806bc3c409395de4dab5984f7a235dc4a0eda (patch)
tree9a631392451ba3c28d62944380685d49f6ca7eb5 /drivers/scsi/bfa/rport.c
parentb85d045ee866011df535565bf12d684e8e5b7a9d (diff)
[SCSI] bfa: use standards defined timeout for ELS/CT
Use standards defined 2 * RA_TOV as a timeout for ELS Request retries. And standards defined 3 * RA_TOV as a timeout for FC-CT Request retries. Also, added a check to send RPSC2 to a Brocade Fabric only. Signed-off-by: Jing Huang <huangj@brocade.com> Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers/scsi/bfa/rport.c')
-rw-r--r--drivers/scsi/bfa/rport.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/scsi/bfa/rport.c b/drivers/scsi/bfa/rport.c
index 7b096f2e3836..2796403222e1 100644
--- a/drivers/scsi/bfa/rport.c
+++ b/drivers/scsi/bfa/rport.c
@@ -1378,7 +1378,7 @@ bfa_fcs_rport_send_plogi(void *rport_cbarg, struct bfa_fcxp_s *fcxp_alloced)
1378 1378
1379 bfa_fcxp_send(fcxp, NULL, port->fabric->vf_id, port->lp_tag, BFA_FALSE, 1379 bfa_fcxp_send(fcxp, NULL, port->fabric->vf_id, port->lp_tag, BFA_FALSE,
1380 FC_CLASS_3, len, &fchs, bfa_fcs_rport_plogi_response, 1380 FC_CLASS_3, len, &fchs, bfa_fcs_rport_plogi_response,
1381 (void *)rport, FC_MAX_PDUSZ, FC_RA_TOV); 1381 (void *)rport, FC_MAX_PDUSZ, FC_ELS_TOV);
1382 1382
1383 rport->stats.plogis++; 1383 rport->stats.plogis++;
1384 bfa_sm_send_event(rport, RPSM_EVENT_FCXP_SENT); 1384 bfa_sm_send_event(rport, RPSM_EVENT_FCXP_SENT);
@@ -1519,7 +1519,7 @@ bfa_fcs_rport_send_adisc(void *rport_cbarg, struct bfa_fcxp_s *fcxp_alloced)
1519 1519
1520 bfa_fcxp_send(fcxp, NULL, port->fabric->vf_id, port->lp_tag, BFA_FALSE, 1520 bfa_fcxp_send(fcxp, NULL, port->fabric->vf_id, port->lp_tag, BFA_FALSE,
1521 FC_CLASS_3, len, &fchs, bfa_fcs_rport_adisc_response, 1521 FC_CLASS_3, len, &fchs, bfa_fcs_rport_adisc_response,
1522 rport, FC_MAX_PDUSZ, FC_RA_TOV); 1522 rport, FC_MAX_PDUSZ, FC_ELS_TOV);
1523 1523
1524 rport->stats.adisc_sent++; 1524 rport->stats.adisc_sent++;
1525 bfa_sm_send_event(rport, RPSM_EVENT_FCXP_SENT); 1525 bfa_sm_send_event(rport, RPSM_EVENT_FCXP_SENT);
@@ -1580,7 +1580,7 @@ bfa_fcs_rport_send_gidpn(void *rport_cbarg, struct bfa_fcxp_s *fcxp_alloced)
1580 1580
1581 bfa_fcxp_send(fcxp, NULL, port->fabric->vf_id, port->lp_tag, BFA_FALSE, 1581 bfa_fcxp_send(fcxp, NULL, port->fabric->vf_id, port->lp_tag, BFA_FALSE,
1582 FC_CLASS_3, len, &fchs, bfa_fcs_rport_gidpn_response, 1582 FC_CLASS_3, len, &fchs, bfa_fcs_rport_gidpn_response,
1583 (void *)rport, FC_MAX_PDUSZ, FC_RA_TOV); 1583 (void *)rport, FC_MAX_PDUSZ, FC_FCCT_TOV);
1584 1584
1585 bfa_sm_send_event(rport, RPSM_EVENT_FCXP_SENT); 1585 bfa_sm_send_event(rport, RPSM_EVENT_FCXP_SENT);
1586} 1586}
@@ -1692,7 +1692,7 @@ bfa_fcs_rport_send_logo(void *rport_cbarg, struct bfa_fcxp_s *fcxp_alloced)
1692 1692
1693 bfa_fcxp_send(fcxp, NULL, port->fabric->vf_id, port->lp_tag, BFA_FALSE, 1693 bfa_fcxp_send(fcxp, NULL, port->fabric->vf_id, port->lp_tag, BFA_FALSE,
1694 FC_CLASS_3, len, &fchs, NULL, rport, FC_MAX_PDUSZ, 1694 FC_CLASS_3, len, &fchs, NULL, rport, FC_MAX_PDUSZ,
1695 FC_ED_TOV); 1695 FC_ELS_TOV);
1696 1696
1697 rport->stats.logos++; 1697 rport->stats.logos++;
1698 bfa_fcxp_discard(rport->fcxp); 1698 bfa_fcxp_discard(rport->fcxp);