Pause storm tracking
Subsystems (2)
cover Pause storm tracking
This series adds TX pause storm event tracking support and updates the documentation for the PFC storm prevention timeout tunable.
Mohsin Bashir (2):
ethtool: Update pause stats struct
ethtool: Update doc for tunable
ethtool.8.in | 19 +++++++++++++++++-- netlink/pause.c | 1 + uapi/linux/ethtool.h | 2 +- 3 files changed, 19 insertions(+), 3 deletions(-)
Signature · 1 line
2.52.0
PATCH 1/2 ethtool: Update pause stats struct
With TX pause enabled, if a device is unable to pass packets up to the stack (e.g., CPU is hanged), the device can cause pause storm. Given that devices can have native support to protect the neighbor from such flooding, such events need some tracking. This support is to track TX pause storm events for better observability.
Kernel commit: 8d282b680c72 ("eth: fbnic: Fetch TX pause storm stats")
./ethtool -I -a eth0
Pause parameters for eth0:
Autonegotiate: off
RX: off
TX: on
Statistics:
tx_pause_frames: 1
rx_pause_frames: 0
tx_pause_storm_events: 0
--- netlink/pause.c | 1 + 1 file changed, 1 insertion(+)
netlink/pause.c +1 -0
@@ -116,6 +116,7 @@ static int show_pause_stats(const struct nlattr *nest) } stats[] = { { ETHTOOL_A_PAUSE_STAT_TX_FRAMES, "tx_pause_frames" }, { ETHTOOL_A_PAUSE_STAT_RX_FRAMES, "rx_pause_frames" }, + { ETHTOOL_A_PAUSE_STAT_TX_PAUSE_STORM_EVENTS, "tx_pause_storm_events" }, }; bool header = false; unsigned int i;
Signature · 1 line
2.52.0
PATCH 2/2 ethtool: Update doc for tunable
In reply to Mohsin BashirETHTOOL_PFC_PREVENTION_TOUT enables the configuration of timeout value for PFC storm prevention. This can also be used to configure storm detection timeout for global pause settings. In fact some existing drivers are already using it for the said purpose.
Update the documentation to formalizes the use of this knob to configure timeout value for pause storm prevention mechanism
Kernel commit: 817de93c348a ("net: ethtool: Update doc for tunable")
--- ethtool.8.in | 19 +++++++++++++++++-- uapi/linux/ethtool.h | 2 +- 2 files changed, 18 insertions(+), 3 deletions(-)
ethtool.8.in +17 -2
@@ -1550,7 +1550,13 @@ Get the current tx copybreak value in bytes. Get the current tx copybreak buffer size in bytes. .TP .B pfc\-prevention\-tout -Get the current pfc prevention timeout value in msecs. +Get the PFC storm prevention timeout value in milliseconds. +This timeout value applies to both PFC (Priority Flow Control) and standard +link-level pause storms (IEEE 802.3x). A pause storm occurs when a device +continously sends TX pause frames to the switch, resulting in persistent +backpressure. When enabled, if the NIC detects that pause assertion has +exceeded the configured timeout, the device takes protective action (stops +sending pause frames) to prevent a complete traffic stall. .RE .TP .B \-\-set\-tunable
@@ -1567,7 +1573,16 @@ Set the tx copybreak value in bytes. Set the tx copybreak buffer size in bytes. .TP .BI pfc\-prevention\-tout \ N -Set pfc prevention timeout in msecs. Value of 0 means disable and 65535 means auto. +Set the PFC storm prevention timeout in milliseconds. The range of valid +values is device specific. Special values: +.RS 4 +.TP +.B 0 +Disable storm prevention. +.TP +.B 65535 +Use device-local default timeout (auto). +.RE .RE .TP .B \-\-reset
uapi/linux/ethtool.h +1 -1
@@ -225,7 +225,7 @@ enum tunable_id {ETHTOOL_ID_UNSPEC ,ETHTOOL_RX_COPYBREAK ,ETHTOOL_TX_COPYBREAK , -ETHTOOL_PFC_PREVENTION_TOUT ,/* timeout in msecs */ +ETHTOOL_PFC_PREVENTION_TOUT ,/* both pause and pfc, see man ethtool */ ETHTOOL_TX_COPYBREAK_BUF_SIZE ,/* * Add your fresh new tunable attribute above and remember to update
Signature · 1 line
2.52.0
This series was applied to ethtool/ethtool.git (next) by Michal Kubecek <[email protected]>:
Hello:
This series was applied to ethtool/ethtool.git (next) by Michal Kubecek <[email protected]>:
Quoted 8 lines · On Fri, 13 Mar 2026 17:17:35 -0700 you wrote:
This series adds TX pause storm event tracking support and updates the documentation for the PFC storm prevention timeout tunable.
Mohsin Bashir (2):
ethtool: Update pause stats struct
ethtool: Update doc for tunable[...]
Here is the summary with links:
- [ethtool-next,1/2] ethtool: Update pause stats struct
https://git.kernel.org/pub/scm/network/ethtool/ethtool.git/commit/?id=582ce2791d19
- [ethtool-next,2/2] ethtool: Update doc for tunable (no matching commit)
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html