diff options
author | Krishna Gudipati <kgudipat@brocade.com> | 2011-06-13 18:53:04 -0400 |
---|---|---|
committer | James Bottomley <JBottomley@Parallels.com> | 2011-06-29 16:52:21 -0400 |
commit | be540a991e2097c313d7304e0daaf89d68011bb9 (patch) | |
tree | a44685889c9989546ffac1ee7ad1da7dd641c20c /drivers/scsi/bfa/bfa_defs_svc.h | |
parent | 8b070b4a022f86dd5098308e36426ce29b6b8960 (diff) |
[SCSI] bfa: FC credit recovery and misc bug fixes.
- Introduce FC credit recovery.
- Added module parameter to enable/disable credit recovery.
Bug Fixes:
- Removed check for ignoring plogi from initiator in switched fabric mode.
- The ABTS for PLOGI is going out few millisecs earlier due to FW
timer calibration (around 300 miilisecs earlier). So there is a
window if an accept comes during this time HBA would have initiated
an ABORT.
- Added 1 to FC_ELS_TOV for compensating for FW timer.
Signed-off-by: Krishna Gudipati <kgudipat@brocade.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers/scsi/bfa/bfa_defs_svc.h')
-rw-r--r-- | drivers/scsi/bfa/bfa_defs_svc.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/scsi/bfa/bfa_defs_svc.h b/drivers/scsi/bfa/bfa_defs_svc.h index bcc919c4a50..6934b2d8d85 100644 --- a/drivers/scsi/bfa/bfa_defs_svc.h +++ b/drivers/scsi/bfa/bfa_defs_svc.h | |||
@@ -746,6 +746,8 @@ struct bfa_port_cfg_s { | |||
746 | u8 tx_bbcredit; /* transmit buffer credits */ | 746 | u8 tx_bbcredit; /* transmit buffer credits */ |
747 | u8 ratelimit; /* ratelimit enabled or not */ | 747 | u8 ratelimit; /* ratelimit enabled or not */ |
748 | u8 trl_def_speed; /* ratelimit default speed */ | 748 | u8 trl_def_speed; /* ratelimit default speed */ |
749 | u8 bb_scn; | ||
750 | u8 rsvd[3]; | ||
749 | u16 path_tov; /* device path timeout */ | 751 | u16 path_tov; /* device path timeout */ |
750 | u16 q_depth; /* SCSI Queue depth */ | 752 | u16 q_depth; /* SCSI Queue depth */ |
751 | }; | 753 | }; |
@@ -782,6 +784,7 @@ struct bfa_port_attr_s { | |||
782 | bfa_boolean_t beacon; /* current beacon status */ | 784 | bfa_boolean_t beacon; /* current beacon status */ |
783 | bfa_boolean_t link_e2e_beacon; /* link beacon is on */ | 785 | bfa_boolean_t link_e2e_beacon; /* link beacon is on */ |
784 | bfa_boolean_t plog_enabled; /* portlog is enabled */ | 786 | bfa_boolean_t plog_enabled; /* portlog is enabled */ |
787 | bfa_boolean_t bbsc_op_status; /* fc credit recovery oper state */ | ||
785 | 788 | ||
786 | /* | 789 | /* |
787 | * Dynamic field - info from FCS | 790 | * Dynamic field - info from FCS |
@@ -1018,6 +1021,9 @@ struct bfa_port_fc_stats_s { | |||
1018 | u64 bad_os_count; /* Invalid ordered sets */ | 1021 | u64 bad_os_count; /* Invalid ordered sets */ |
1019 | u64 err_enc_out; /* Encoding err nonframe_8b10b */ | 1022 | u64 err_enc_out; /* Encoding err nonframe_8b10b */ |
1020 | u64 err_enc; /* Encoding err frame_8b10b */ | 1023 | u64 err_enc; /* Encoding err frame_8b10b */ |
1024 | u64 bbsc_frames_lost; /* Credit Recovery-Frames Lost */ | ||
1025 | u64 bbsc_credits_lost; /* Credit Recovery-Credits Lost */ | ||
1026 | u64 bbsc_link_resets; /* Credit Recovery-Link Resets */ | ||
1021 | }; | 1027 | }; |
1022 | 1028 | ||
1023 | /* | 1029 | /* |