diff options
author | Jing Huang <huangj@brocade.com> | 2010-07-08 22:50:15 -0400 |
---|---|---|
committer | James Bottomley <James.Bottomley@suse.de> | 2010-07-27 13:04:08 -0400 |
commit | 4f1806bc3c409395de4dab5984f7a235dc4a0eda (patch) | |
tree | 9a631392451ba3c28d62944380685d49f6ca7eb5 /drivers/scsi/bfa/fdmi.c | |
parent | b85d045ee866011df535565bf12d684e8e5b7a9d (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/fdmi.c')
-rw-r--r-- | drivers/scsi/bfa/fdmi.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/scsi/bfa/fdmi.c b/drivers/scsi/bfa/fdmi.c index 8f17076d1a87..2b50eabf4b1e 100644 --- a/drivers/scsi/bfa/fdmi.c +++ b/drivers/scsi/bfa/fdmi.c | |||
@@ -532,7 +532,7 @@ bfa_fcs_port_fdmi_send_rhba(void *fdmi_cbarg, struct bfa_fcxp_s *fcxp_alloced) | |||
532 | bfa_fcxp_send(fcxp, NULL, port->fabric->vf_id, port->lp_tag, BFA_FALSE, | 532 | bfa_fcxp_send(fcxp, NULL, port->fabric->vf_id, port->lp_tag, BFA_FALSE, |
533 | FC_CLASS_3, (len + attr_len), &fchs, | 533 | FC_CLASS_3, (len + attr_len), &fchs, |
534 | bfa_fcs_port_fdmi_rhba_response, (void *)fdmi, | 534 | bfa_fcs_port_fdmi_rhba_response, (void *)fdmi, |
535 | FC_MAX_PDUSZ, FC_RA_TOV); | 535 | FC_MAX_PDUSZ, FC_FCCT_TOV); |
536 | 536 | ||
537 | bfa_sm_send_event(fdmi, FDMISM_EVENT_RHBA_SENT); | 537 | bfa_sm_send_event(fdmi, FDMISM_EVENT_RHBA_SENT); |
538 | } | 538 | } |
@@ -823,7 +823,7 @@ bfa_fcs_port_fdmi_send_rprt(void *fdmi_cbarg, struct bfa_fcxp_s *fcxp_alloced) | |||
823 | bfa_fcxp_send(fcxp, NULL, port->fabric->vf_id, port->lp_tag, BFA_FALSE, | 823 | bfa_fcxp_send(fcxp, NULL, port->fabric->vf_id, port->lp_tag, BFA_FALSE, |
824 | FC_CLASS_3, len + attr_len, &fchs, | 824 | FC_CLASS_3, len + attr_len, &fchs, |
825 | bfa_fcs_port_fdmi_rprt_response, (void *)fdmi, | 825 | bfa_fcs_port_fdmi_rprt_response, (void *)fdmi, |
826 | FC_MAX_PDUSZ, FC_RA_TOV); | 826 | FC_MAX_PDUSZ, FC_FCCT_TOV); |
827 | 827 | ||
828 | bfa_sm_send_event(fdmi, FDMISM_EVENT_RPRT_SENT); | 828 | bfa_sm_send_event(fdmi, FDMISM_EVENT_RPRT_SENT); |
829 | } | 829 | } |
@@ -1043,7 +1043,7 @@ bfa_fcs_port_fdmi_send_rpa(void *fdmi_cbarg, struct bfa_fcxp_s *fcxp_alloced) | |||
1043 | bfa_fcxp_send(fcxp, NULL, port->fabric->vf_id, port->lp_tag, BFA_FALSE, | 1043 | bfa_fcxp_send(fcxp, NULL, port->fabric->vf_id, port->lp_tag, BFA_FALSE, |
1044 | FC_CLASS_3, len + attr_len, &fchs, | 1044 | FC_CLASS_3, len + attr_len, &fchs, |
1045 | bfa_fcs_port_fdmi_rpa_response, (void *)fdmi, | 1045 | bfa_fcs_port_fdmi_rpa_response, (void *)fdmi, |
1046 | FC_MAX_PDUSZ, FC_RA_TOV); | 1046 | FC_MAX_PDUSZ, FC_FCCT_TOV); |
1047 | 1047 | ||
1048 | bfa_sm_send_event(fdmi, FDMISM_EVENT_RPA_SENT); | 1048 | bfa_sm_send_event(fdmi, FDMISM_EVENT_RPA_SENT); |
1049 | } | 1049 | } |