mbox series

[iwl-next,v2,0/2] Add link_down_events counters to ixgbe and ice drivers

Message ID 20250414130007.366132-2-martyna.szapar-mudlaw@linux.intel.com (mailing list archive)
Headers show
Series Add link_down_events counters to ixgbe and ice drivers | expand

Message

Szapar-Mudlaw, Martyna April 14, 2025, 1 p.m. UTC
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 values are exposed via ethtool using the get_link_ext_stats() interface.

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

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(+)