net/mlx5e: PFC stall prevention support
Implement set/get functions to configure PFC stall prevention timeout by tunables api through ethtool. By default the stall prevention timeout is configured to 8 sec. Timeout range is: 80-8000 msec. Enabling stall prevention with the auto timeout will set the timeout to 100 msec. Signed-off-by: Inbar Karmy <inbark@mellanox.com> Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
This commit is contained in:

committed by
Saeed Mahameed

parent
e1577c1c88
commit
2afa609f5c
@@ -151,6 +151,12 @@ int mlx5_set_port_pfc(struct mlx5_core_dev *dev, u8 pfc_en_tx, u8 pfc_en_rx);
|
||||
int mlx5_query_port_pfc(struct mlx5_core_dev *dev, u8 *pfc_en_tx,
|
||||
u8 *pfc_en_rx);
|
||||
|
||||
int mlx5_set_port_stall_watermark(struct mlx5_core_dev *dev,
|
||||
u16 stall_critical_watermark,
|
||||
u16 stall_minor_watermark);
|
||||
int mlx5_query_port_stall_watermark(struct mlx5_core_dev *dev,
|
||||
u16 *stall_critical_watermark, u16 *stall_minor_watermark);
|
||||
|
||||
int mlx5_max_tc(struct mlx5_core_dev *mdev);
|
||||
|
||||
int mlx5_set_port_prio_tc(struct mlx5_core_dev *mdev, u8 *prio_tc);
|
||||
|
Reference in New Issue
Block a user