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> Signed-off-by: Sasha Neftin <sasha.neftin@intel.com> Tested-by: Dvora Fuxbrumer <dvorax.fuxbrumer@linux.intel.com> Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
This commit is contained in:
committed by
Tony Nguyen
parent
b3d4f40562
commit
1feaf60ff2
@@ -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) { \
|
||||
|
||||
Reference in New Issue
Block a user