diff options
author | Krishna Gudipati <kgudipat@brocade.com> | 2012-09-21 20:26:07 -0400 |
---|---|---|
committer | James Bottomley <JBottomley@Parallels.com> | 2012-10-07 06:17:27 -0400 |
commit | e353546e447feb838db2d1b23bac23cb90755993 (patch) | |
tree | f2762c0aedd4bb0ef4ebdca889c782b180ecdddc /drivers/scsi/bfa/bfad_bsg.h | |
parent | 1306e31d417df05c25053c5632b26d1c1b22d1ed (diff) |
[SCSI] bfa: Add diagnostic port (D-Port) support
- Introduced support for D-Port which is a new port mode during which
link level diagnostics can be run.
- Provided mechanism to dynamically configure D-Port and initiate diagnostic
tests to isolate any link level issues.
- In D-Port mode, the HBA port does not participate in fabric or login to the
remote device or run data traffic.
- Diagnostic tests include running various loopback tests in conjunction with
the attached device.
Signed-off-by: Krishna Gudipati <kgudipat@brocade.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers/scsi/bfa/bfad_bsg.h')
-rw-r--r-- | drivers/scsi/bfa/bfad_bsg.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/scsi/bfa/bfad_bsg.h b/drivers/scsi/bfa/bfad_bsg.h index 8c569ddb750d..62f1b8809d19 100644 --- a/drivers/scsi/bfa/bfad_bsg.h +++ b/drivers/scsi/bfa/bfad_bsg.h | |||
@@ -141,6 +141,9 @@ enum { | |||
141 | IOCMD_FCPIM_LUNMASK_QUERY, | 141 | IOCMD_FCPIM_LUNMASK_QUERY, |
142 | IOCMD_FCPIM_LUNMASK_ADD, | 142 | IOCMD_FCPIM_LUNMASK_ADD, |
143 | IOCMD_FCPIM_LUNMASK_DELETE, | 143 | IOCMD_FCPIM_LUNMASK_DELETE, |
144 | IOCMD_DIAG_DPORT_ENABLE, | ||
145 | IOCMD_DIAG_DPORT_DISABLE, | ||
146 | IOCMD_DIAG_DPORT_GET_STATE, | ||
144 | }; | 147 | }; |
145 | 148 | ||
146 | struct bfa_bsg_gen_s { | 149 | struct bfa_bsg_gen_s { |
@@ -613,6 +616,13 @@ struct bfa_bsg_diag_lb_stat_s { | |||
613 | u16 rsvd; | 616 | u16 rsvd; |
614 | }; | 617 | }; |
615 | 618 | ||
619 | struct bfa_bsg_diag_dport_get_state_s { | ||
620 | bfa_status_t status; | ||
621 | u16 bfad_num; | ||
622 | u16 rsvd; | ||
623 | enum bfa_dport_state state; | ||
624 | }; | ||
625 | |||
616 | struct bfa_bsg_phy_attr_s { | 626 | struct bfa_bsg_phy_attr_s { |
617 | bfa_status_t status; | 627 | bfa_status_t status; |
618 | u16 bfad_num; | 628 | u16 bfad_num; |