History

net/mlx5e: DCBNL, Implement tc with ets type and zero bandwidth

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.

Huy Nguyen committed 9 years ago

Commit be0f1611 parent 3c377453 files · +106 −30Browse files

Showing the changes to include/linux (1 of 3 files). Show all

Unified · Split

include/linux/mlx5/port.h+2−0
@@ -157,6 +157,8 @@ int mlx5_set_port_prio_tc(struct mlx5_core_dev *mdev, u8 *prio_tc); · 156 unmodified lines
157157 int mlx5_query_port_prio_tc(struct mlx5_core_dev *mdev,
158158 u8 prio, u8 *tc);
159159 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);
160162 int mlx5_set_port_tc_bw_alloc(struct mlx5_core_dev *mdev, u8 *tc_bw);
161163 int mlx5_query_port_tc_bw_alloc(struct mlx5_core_dev *mdev,
162164 u8 tc, u8 *bw_pct);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t