Skip to content

Commit 452ef7f

Browse files
cjubranSaeed Mahameed
authored andcommitted
net/mlx5: Add missing masks and QoS bit masks for scheduling elements
Add the missing masks for supported element types and Transmit Scheduling Arbiter (TSAR) types in scheduling elements. Also, add the corresponding bit masks for these types in the QoS capabilities of a NIC scheduler. Fixes: 214baf2 ("net/mlx5e: Support HTB offload") Signed-off-by: Carolina Jubran <[email protected]> Reviewed-by: Cosmin Ratiu <[email protected]> Signed-off-by: Saeed Mahameed <[email protected]>
1 parent c88146a commit 452ef7f

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

include/linux/mlx5/mlx5_ifc.h

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1027,7 +1027,8 @@ struct mlx5_ifc_qos_cap_bits {
10271027

10281028
u8 max_tsar_bw_share[0x20];
10291029

1030-
u8 reserved_at_100[0x20];
1030+
u8 nic_element_type[0x10];
1031+
u8 nic_tsar_type[0x10];
10311032

10321033
u8 reserved_at_120[0x3];
10331034
u8 log_meter_aso_granularity[0x5];
@@ -3966,6 +3967,7 @@ enum {
39663967
ELEMENT_TYPE_CAP_MASK_VPORT = 1 << 1,
39673968
ELEMENT_TYPE_CAP_MASK_VPORT_TC = 1 << 2,
39683969
ELEMENT_TYPE_CAP_MASK_PARA_VPORT_TC = 1 << 3,
3970+
ELEMENT_TYPE_CAP_MASK_QUEUE_GROUP = 1 << 4,
39693971
};
39703972

39713973
struct mlx5_ifc_scheduling_context_bits {
@@ -4675,6 +4677,12 @@ enum {
46754677
TSAR_ELEMENT_TSAR_TYPE_ETS = 0x2,
46764678
};
46774679

4680+
enum {
4681+
TSAR_TYPE_CAP_MASK_DWRR = 1 << 0,
4682+
TSAR_TYPE_CAP_MASK_ROUND_ROBIN = 1 << 1,
4683+
TSAR_TYPE_CAP_MASK_ETS = 1 << 2,
4684+
};
4685+
46784686
struct mlx5_ifc_tsar_element_bits {
46794687
u8 reserved_at_0[0x8];
46804688
u8 tsar_type[0x8];

0 commit comments

Comments
 (0)