summaryrefslogtreecommitdiff
path: root/include/uapi/linux
diff options
context:
space:
mode:
authorPaolo Abeni <pabeni@redhat.com>2026-03-05 18:26:54 +0300
committerPaolo Abeni <pabeni@redhat.com>2026-03-05 18:26:55 +0300
commitab99e1167293726f016360a5dbbbc10386fd7d66 (patch)
tree8ca28ba27b69fbcdd1d9468f5d1a1b4d605c2bad /include/uapi/linux
parentbc531c2cc1d179156e8e4bdede92842dc3b63cc2 (diff)
parentcc663d3fed062fb41b59df953a2cb9df5f56f943 (diff)
downloadlinux-ab99e1167293726f016360a5dbbbc10386fd7d66.tar.xz
Merge branch 'net-ethtool-track-tx-pause-storm'
Mohsin Bashir says: ==================== net: ethtool: Track TX pause storm With TX pause enabled, if a device cannot deliver received frames to the stack (e.g., during a system hang), it may generate excessive pause frames causing a pause storm. This series updates the uAPI to track TX pause storm events as part of the pause stats (p1), proposes using the existing pfc-prevention-tout knob to configure the storm watchdog (p2), adds pause storm protection support for fbnic (p3), and leverages p1 to provide observability into these events for the fbnic (p4) and mlx5 (p5) drivers. v3: https://lore.kernel.org/netdev/20260223174914.74461-1-mohsin.bashr@gmail.com/ V2: https://lore.kernel.org/20260207010525.3808842-1-mohsin.bashr@gmail.com/ V1: https://lore.kernel.org/20260122192158.428882-1-mohsin.bashr@gmail.com/ ==================== Link: https://patch.msgid.link/20260302230149.1580195-1-mohsin.bashr@gmail.com Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'include/uapi/linux')
-rw-r--r--include/uapi/linux/ethtool.h2
-rw-r--r--include/uapi/linux/ethtool_netlink_generated.h1
2 files changed, 2 insertions, 1 deletions
diff --git a/include/uapi/linux/ethtool.h b/include/uapi/linux/ethtool.h
index b74b80508553..1cdfb8341df2 100644
--- a/include/uapi/linux/ethtool.h
+++ b/include/uapi/linux/ethtool.h
@@ -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
diff --git a/include/uapi/linux/ethtool_netlink_generated.h b/include/uapi/linux/ethtool_netlink_generated.h
index 556a0c834df5..114b83017297 100644
--- a/include/uapi/linux/ethtool_netlink_generated.h
+++ b/include/uapi/linux/ethtool_netlink_generated.h
@@ -381,6 +381,7 @@ enum {
ETHTOOL_A_PAUSE_STAT_PAD,
ETHTOOL_A_PAUSE_STAT_TX_FRAMES,
ETHTOOL_A_PAUSE_STAT_RX_FRAMES,
+ ETHTOOL_A_PAUSE_STAT_TX_PAUSE_STORM_EVENTS,
__ETHTOOL_A_PAUSE_STAT_CNT,
ETHTOOL_A_PAUSE_STAT_MAX = (__ETHTOOL_A_PAUSE_STAT_CNT - 1)