]> git.baikalelectronics.ru Git - kernel.git/commit
ethtool: Add support for configuring PFC stall prevention in ethtool
authorInbar Karmy <inbark@mellanox.com>
Mon, 20 Nov 2017 14:14:30 +0000 (16:14 +0200)
committerSaeed Mahameed <saeedm@mellanox.com>
Mon, 26 Mar 2018 20:46:46 +0000 (13:46 -0700)
commitb2922b87ddd0759b8f3b1aa60a627f46567c8718
tree611ccfe349918ef69ea4603ffc48eeb1c9aee1ee
parent7256ad6a33eae1db3253a48c1986002a9f088073
ethtool: Add support for configuring PFC stall prevention in ethtool

In the event where the device unexpectedly becomes unresponsive
for a long period of time, flow control mechanism may propagate
pause frames which will cause congestion spreading to the entire
network.
To prevent this scenario, when the device is stalled for a period
longer than a pre-configured timeout, flow control mechanisms are
automatically disabled.

This patch adds support for the ETHTOOL_PFC_STALL_PREVENTION
as a tunable.
This API provides support for configuring flow control storm prevention
timeout (msec).

Signed-off-by: Inbar Karmy <inbark@mellanox.com>
Cc: Michal Kubecek <mkubecek@suse.cz>
Cc: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
include/uapi/linux/ethtool.h
net/core/ethtool.c