Skip to contentSkip to conversation

igc: Expose LPI counters

PATCH New Sasha Neftin 2 participants 2 messages Mar 24, 2021 – Apr 11, 2021

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 igc: Expose LPI counters

Expose EEE tx and rx low power idle counters via ethtool A EEE TX or RX LPI event occurs when the transmitter or the receiver enters EEE (IEEE802.3az) LPI state.
ethtool --statistics <iface>

---
 drivers/net/ethernet/intel/igc/igc_ethtool.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/net/ethernet/intel/igc/igc_ethtool.c +2 -0
index 8722294ab90c..9722449d7633 100644
@@ -65,6 +65,8 @@ static const struct igc_stats igc_gstrings_stats[] = {
 	IGC_STAT("tx_hwtstamp_timeouts", tx_hwtstamp_timeouts),
 	IGC_STAT("tx_hwtstamp_skipped", tx_hwtstamp_skipped),
 	IGC_STAT("rx_hwtstamp_cleared", rx_hwtstamp_cleared),
+	IGC_STAT("tx_lpi_counter", stats.tlpic),
+	IGC_STAT("rx_lpi_counter", stats.rlpic),
 };
 
 #define IGC_NETDEV_STAT(_net_stat) { \
Signature · 1 line
2.25.1
#1 lore raw

PATCH 1/1 igc: Expose LPI counters

Quoted 10 lines · Sasha Neftin

Expose EEE tx and rx low power idle counters via ethtool A EEE TX or RX LPI event occurs when the transmitter or the receiver enters EEE (IEEE802.3az) LPI state.
ethtool --statistics <iface>

---
  drivers/net/ethernet/intel/igc/igc_ethtool.c | 2 ++
  1 file changed, 2 insertions(+)