]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: PFC stall prevention support
authorInbar Karmy <inbark@mellanox.com>
Mon, 20 Nov 2017 16:06:20 +0000 (18:06 +0200)
committerSaeed Mahameed <saeedm@mellanox.com>
Mon, 26 Mar 2018 20:46:46 +0000 (13:46 -0700)
commitc25e6628a8195427cc8941c370daf1c189846412
tree69388dd5a8bec7473daf13ecf8aba3ce84aeeaa6
parent115fc9c11cb34c31e94b7550f61b25bfbd333990
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>
drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c
drivers/net/ethernet/mellanox/mlx5/core/port.c
include/linux/mlx5/mlx5_ifc.h
include/linux/mlx5/port.h