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)
commit2afa609f5c970185a8cae73f6a4caadf97fbea54
tree69388dd5a8bec7473daf13ecf8aba3ce84aeeaa6
parente1577c1c881b09e9f15a743a4a1907815b74d0f7
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