mirror of
https://github.com/torvalds/linux.git
synced 2026-12-03 03:52:37 +00:00
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 <[email protected]> Cc: Michal Kubecek <[email protected]> Cc: Andrew Lunn <[email protected]> Signed-off-by: Saeed Mahameed <[email protected]>