diff options
author | Krishna Gudipati <kgudipat@brocade.com> | 2011-07-21 02:04:24 +0200 |
---|---|---|
committer | James Bottomley <JBottomley@Parallels.com> | 2011-07-27 12:57:31 +0200 |
commit | 4c5d22bf7bdea68d3d449f6a8e1835da84909346 (patch) | |
tree | fb891101e865e1794c2c4cca71e1f0ecc6485bcb /drivers/scsi/bfa/bfad_bsg.h | |
parent | [SCSI] bfa: Introduced initiator based lun masking feature. (diff) | |
download | linux-4c5d22bf7bdea68d3d449f6a8e1835da84909346.tar.xz linux-4c5d22bf7bdea68d3d449f6a8e1835da84909346.zip |
[SCSI] bfa: Added support to configure lunmasking
- Added support to enable / disable lunmasking on Brocade adapter ports.
- Added support to query / clear lunmasking configuration.
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 | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/drivers/scsi/bfa/bfad_bsg.h b/drivers/scsi/bfa/bfad_bsg.h index 1e02652019b3..e859adb9aa9e 100644 --- a/drivers/scsi/bfa/bfad_bsg.h +++ b/drivers/scsi/bfa/bfad_bsg.h @@ -137,6 +137,12 @@ enum { IOCMD_QOS_RESET_STATS, IOCMD_VF_GET_STATS, IOCMD_VF_RESET_STATS, + IOCMD_FCPIM_LUNMASK_ENABLE, + IOCMD_FCPIM_LUNMASK_DISABLE, + IOCMD_FCPIM_LUNMASK_CLEAR, + IOCMD_FCPIM_LUNMASK_QUERY, + IOCMD_FCPIM_LUNMASK_ADD, + IOCMD_FCPIM_LUNMASK_DELETE, }; struct bfa_bsg_gen_s { @@ -701,6 +707,21 @@ struct bfa_bsg_vf_reset_stats_s { u16 vf_id; }; +struct bfa_bsg_fcpim_lunmask_query_s { + bfa_status_t status; + u16 bfad_num; + struct bfa_lunmask_cfg_s lun_mask; +}; + +struct bfa_bsg_fcpim_lunmask_s { + bfa_status_t status; + u16 bfad_num; + u16 vf_id; + wwn_t pwwn; + wwn_t rpwwn; + struct scsi_lun lun; +}; + struct bfa_bsg_fcpt_s { bfa_status_t status; u16 vf_id; |