public inbox for netdev@vger.kernel.org
 help / color / mirror / Atom feed
From: Mohsin Bashir <mohsin.bashr@gmail.com>
To: mkubecek@suse.cz
Cc: netdev@vger.kernel.org, kuba@kernel.org, alexander.duyck@gmail.com
Subject: [PATCH ethtool-next 1/2] ethtool: Update pause stats struct
Date: Fri, 13 Mar 2026 17:17:36 -0700	[thread overview]
Message-ID: <20260314001737.494082-2-mohsin.bashr@gmail.com> (raw)
In-Reply-To: <20260314001737.494082-1-mohsin.bashr@gmail.com>

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

Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Mohsin Bashir <mohsin.bashr@gmail.com>
---
 netlink/pause.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/netlink/pause.c b/netlink/pause.c
index da444bd..a22c7a3 100644
--- a/netlink/pause.c
+++ b/netlink/pause.c
@@ -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;
-- 
2.52.0


  reply	other threads:[~2026-03-14  0:17 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-03-14  0:17 [PATCH ethtool-next 0/2] Pause storm tracking Mohsin Bashir
2026-03-14  0:17 ` Mohsin Bashir [this message]
2026-03-14  0:17 ` [PATCH ethtool-next 2/2] ethtool: Update doc for tunable Mohsin Bashir
2026-03-23 19:10 ` [PATCH ethtool-next 0/2] Pause storm tracking patchwork-bot+netdevbpf

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260314001737.494082-2-mohsin.bashr@gmail.com \
    --to=mohsin.bashr@gmail.com \
    --cc=alexander.duyck@gmail.com \
    --cc=kuba@kernel.org \
    --cc=mkubecek@suse.cz \
    --cc=netdev@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox