aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/bfa/bfa_defs_svc.h
diff options
context:
space:
mode:
authorKrishna Gudipati <kgudipat@brocade.com>2012-09-21 20:26:31 -0400
committerJames Bottomley <JBottomley@Parallels.com>2012-10-07 06:20:08 -0400
commit6894f013a71b1bcd09f46b8071f0c6b55fc58139 (patch)
tree76f2ff25deb3519174c33d38e9bef2b98311fc0d /drivers/scsi/bfa/bfa_defs_svc.h
parent04ea65756251577991189ef659dd9694b97a5f81 (diff)
[SCSI] bfa: Add support for user to configure bandwidth on QoS priorities
Made changes to provide an option for user to configure the bandwidth percentage for High/Medium/Low QoS priorities. Signed-off-by: Sudarsana Reddy Kalluru <skalluru@brocade.com> 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.h15
1 files changed, 12 insertions, 3 deletions
diff --git a/drivers/scsi/bfa/bfa_defs_svc.h b/drivers/scsi/bfa/bfa_defs_svc.h
index 76ea10d37ad7..18e4f6ba70d2 100644
--- a/drivers/scsi/bfa/bfa_defs_svc.h
+++ b/drivers/scsi/bfa/bfa_defs_svc.h
@@ -522,6 +522,14 @@ enum bfa_qos_bw_alloc {
522 BFA_QOS_BW_LOW = 10, /* bandwidth allocation for Low */ 522 BFA_QOS_BW_LOW = 10, /* bandwidth allocation for Low */
523}; 523};
524#pragma pack(1) 524#pragma pack(1)
525
526struct bfa_qos_bw_s {
527 u8 qos_bw_set;
528 u8 high;
529 u8 med;
530 u8 low;
531};
532
525/* 533/*
526 * QoS attribute returned in QoS Query 534 * QoS attribute returned in QoS Query
527 */ 535 */
@@ -529,7 +537,8 @@ struct bfa_qos_attr_s {
529 u8 state; /* QoS current state */ 537 u8 state; /* QoS current state */
530 u8 rsvd1[3]; 538 u8 rsvd1[3];
531 u32 total_bb_cr; /* Total BB Credits */ 539 u32 total_bb_cr; /* Total BB Credits */
532 u32 rsvd2[2]; 540 struct bfa_qos_bw_s qos_bw; /* QOS bw cfg */
541 struct bfa_qos_bw_s qos_bw_op; /* QOS bw operational */
533}; 542};
534 543
535/* 544/*
@@ -887,7 +896,7 @@ struct bfa_port_cfg_s {
887 u8 rsvd1; 896 u8 rsvd1;
888 u16 path_tov; /* device path timeout */ 897 u16 path_tov; /* device path timeout */
889 u16 q_depth; /* SCSI Queue depth */ 898 u16 q_depth; /* SCSI Queue depth */
890 u32 rsvd2; 899 struct bfa_qos_bw_s qos_bw; /* QOS bandwidth */
891}; 900};
892#pragma pack() 901#pragma pack()
893 902
@@ -935,7 +944,7 @@ struct bfa_port_attr_s {
935 944
936 /* FCoE specific */ 945 /* FCoE specific */
937 u16 fcoe_vlan; 946 u16 fcoe_vlan;
938 u8 rsvd1[2]; 947 u8 rsvd1[6];
939}; 948};
940 949
941/* 950/*