netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH iwl-next v4 0/2] Add link_down_events counters to ixgbe and ice drivers
@ 2025-05-15 10:50 Martyna Szapar-Mudlaw
  2025-05-15 10:50 ` [PATCH iwl-next v4 1/2] ice: add link_down_events statistic Martyna Szapar-Mudlaw
  2025-05-15 10:50 ` [PATCH iwl-next v4 2/2] ixgbe: " Martyna Szapar-Mudlaw
  0 siblings, 2 replies; 6+ messages in thread
From: Martyna Szapar-Mudlaw @ 2025-05-15 10:50 UTC (permalink / raw)
  To: intel-wired-lan
  Cc: netdev, kuba, dawid.osuchowski, pmenzel, Martyna Szapar-Mudlaw

This series introduces link_down_events counters to the ixgbe and ice drivers.
The counters are incremented each time the link transitions from up to down,
allowing better diagnosis of link stability issues such as port flapping or
unexpected link drops.

The counter increments only on actual physical link-down events visible
to the PHY. It does not increment when the user performs a software-only
interface down/up (e.g. ip link set dev down).
The counter does increment in cases where the interface is reinitialized
in a way that causes a real link drop — such as eg. when attaching
an XDP program, reconfiguring channels, or toggling certain priv-flags.

The values are exposed via ethtool using the get_link_ext_stats() interface.

Example output:
#ethtool --include-statistics <ethX>
Settings for <ethX>:
        [...]
        Link Down Events: 2

Martyna Szapar-Mudlaw (2):
  ice: add link_down_events statistic
  ixgbe: add link_down_events statistic

v4->v3:
only cover letter edits
v3 -> v2:
ixgbe patch: rebased on latest ixgbe changes; added statistic for E610
no changes to ice driver patch 
v2 -> v1:
used ethtool get_link_ext_stats() interface to expose counters

 drivers/net/ethernet/intel/ice/ice.h             |  1 +
 drivers/net/ethernet/intel/ice/ice_ethtool.c     | 10 ++++++++++
 drivers/net/ethernet/intel/ice/ice_main.c        |  3 +++
 drivers/net/ethernet/intel/ixgbe/ixgbe.h         |  1 +
 drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c |  9 +++++++++
 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c    |  2 ++
 6 files changed, 26 insertions(+)

-- 
2.47.0


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2025-05-22 13:48 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-15 10:50 [PATCH iwl-next v4 0/2] Add link_down_events counters to ixgbe and ice drivers Martyna Szapar-Mudlaw
2025-05-15 10:50 ` [PATCH iwl-next v4 1/2] ice: add link_down_events statistic Martyna Szapar-Mudlaw
2025-05-22 13:47   ` Simon Horman
2025-05-15 10:50 ` [PATCH iwl-next v4 2/2] ixgbe: " Martyna Szapar-Mudlaw
2025-05-19 12:31   ` [Intel-wired-lan] " Rinitha, SX
2025-05-22 13:48   ` Simon Horman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).