diff options
author | Krishna Gudipati <kgudipat@brocade.com> | 2011-07-21 00:02:11 (GMT) |
---|---|---|
committer | James Bottomley <JBottomley@Parallels.com> | 2011-07-27 10:48:52 (GMT) |
commit | 37ea0558b87abb151245bc750070a4dcda490aca (patch) | |
tree | 352d00d22b8f9c91ace2dc8d72dc465deb6ffa7b /drivers/scsi/bfa/bfad_bsg.h | |
parent | 42a8e6e298f39518445785c53a16357267db37ef (diff) | |
download | linux-fsl-qoriq-37ea0558b87abb151245bc750070a4dcda490aca.tar.xz |
[SCSI] bfa: Added support to collect and reset fcport stats
- Added support to collect and reset fcport stats.
- Modified design to allow multiple requests for fcport stats.
- fcport will remember the stats request in its stats_pending
queue and service each of the queued requests after receiving
a firmware response for the prior request.
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 | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/scsi/bfa/bfad_bsg.h b/drivers/scsi/bfa/bfad_bsg.h index 91cb212..f64f3ee 100644 --- a/drivers/scsi/bfa/bfad_bsg.h +++ b/drivers/scsi/bfa/bfad_bsg.h @@ -119,6 +119,8 @@ enum { IOCMD_FCPIM_PROFILE_ON, IOCMD_FCPIM_PROFILE_OFF, IOCMD_ITNIM_GET_IOPROFILE, + IOCMD_FCPORT_GET_STATS, + IOCMD_FCPORT_RESET_STATS, }; struct bfa_bsg_gen_s { @@ -150,6 +152,13 @@ struct bfa_bsg_itnim_ioprofile_s { struct bfa_itnim_ioprofile_s ioprofile; }; +struct bfa_bsg_fcport_stats_s { + bfa_status_t status; + u16 bfad_num; + u16 rsvd; + union bfa_fcport_stats_u stats; +}; + struct bfa_bsg_ioc_name_s { bfa_status_t status; u16 bfad_num; |