Previously, tc with ets type and zero bandwidth is not accepted by driver. This behavior does not follow the IEEE802.1qaz spec. If there are tcs with ets type and zero bandwidth, these tcs are assigned to the lowest priority tc_group #0. We equally distribute 100% bw of the tc_group #0 to these zero bandwidth ets tcs. Also, the non zero bandwidth ets tcs are assigned to tc_group #1. If there is no zero bandwidth ets tc, the non zero bandwidth ets tcs are assigned to tc_group #0.
Showing the changes to include/linux (1 of 3 files). Show all
Unified · Split
| @@ -157,6 +157,8 @@ int mlx5_set_port_prio_tc(struct mlx5_core_dev *mdev, u8 *prio_tc); · 156 unmodified lines | ||
| 157 | 157 | int mlx5_query_port_prio_tc(struct mlx5_core_dev *mdev, |
| 158 | 158 | u8 prio, u8 *tc); |
| 159 | 159 | int mlx5_set_port_tc_group(struct mlx5_core_dev *mdev, u8 *tc_group); |
| 160 | +int mlx5_query_port_tc_group(struct mlx5_core_dev *mdev, | |
| 161 | + u8 tc, u8 *tc_group); | |
| 160 | 162 | int mlx5_set_port_tc_bw_alloc(struct mlx5_core_dev *mdev, u8 *tc_bw); |
| 161 | 163 | int mlx5_query_port_tc_bw_alloc(struct mlx5_core_dev *mdev, |
| 162 | 164 | u8 tc, u8 *bw_pct); |