net/mlx5e: Implement DCBNL IEEE max rate
Add support for DCBNL IEEE get/set max rate. Signed-off-by: Tariq Toukan <tariqt@mellanox.com> Signed-off-by: Saeed Mahameed <saeedm@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
ef9184335e
commit
d8880795da
@@ -350,6 +350,12 @@ enum {
|
||||
MLX5_SET_PORT_PKEY_TABLE = 20,
|
||||
};
|
||||
|
||||
enum {
|
||||
MLX5_BW_NO_LIMIT = 0,
|
||||
MLX5_100_MBPS_UNIT = 3,
|
||||
MLX5_GBPS_UNIT = 4,
|
||||
};
|
||||
|
||||
enum {
|
||||
MLX5_MAX_PAGE_SHIFT = 31
|
||||
};
|
||||
|
@@ -75,5 +75,11 @@ int mlx5_max_tc(struct mlx5_core_dev *mdev);
|
||||
int mlx5_set_port_prio_tc(struct mlx5_core_dev *mdev, u8 *prio_tc);
|
||||
int mlx5_set_port_tc_group(struct mlx5_core_dev *mdev, u8 *tc_group);
|
||||
int mlx5_set_port_tc_bw_alloc(struct mlx5_core_dev *mdev, u8 *tc_bw);
|
||||
int mlx5_modify_port_ets_rate_limit(struct mlx5_core_dev *mdev,
|
||||
u8 *max_bw_value,
|
||||
u8 *max_bw_unit);
|
||||
int mlx5_query_port_ets_rate_limit(struct mlx5_core_dev *mdev,
|
||||
u8 *max_bw_value,
|
||||
u8 *max_bw_unit);
|
||||
|
||||
#endif /* __MLX5_PORT_H__ */
|
||||
|
Reference in New Issue
Block a user