• I
    ethtool: Add support for configuring PFC stall prevention in ethtool · e1577c1c
    Inbar Karmy 提交于
    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: NInbar Karmy <inbark@mellanox.com>
    Cc: Michal Kubecek <mkubecek@suse.cz>
    Cc: Andrew Lunn <andrew@lunn.ch>
    Signed-off-by: NSaeed Mahameed <saeedm@mellanox.com>
    e1577c1c
ethtool.c 72.9 KB