Skip to content

Commit 900d1e8

Browse files
aneftinJeff Kirsher
authored andcommitted
igc: Add LPI counters
Add EEE TX LPI and EEE RX LPI counters. A EEE TX LPI event occurs when the transmitter enters EEE (IEEE 802.3az) LPI state. A EEE RX LPI event occurs when the receiver detect link partner entry into EEE(IEEE 802.3az) LPI state. Signed-off-by: Sasha Neftin <[email protected]> Tested-by: Aaron Brown <[email protected]> Signed-off-by: Jeff Kirsher <[email protected]>
1 parent 1cbedab commit 900d1e8

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

drivers/net/ethernet/intel/igc/igc_mac.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -307,6 +307,8 @@ void igc_clear_hw_cntrs_base(struct igc_hw *hw)
307307
rd32(IGC_ICRXDMTC);
308308

309309
rd32(IGC_RPTHC);
310+
rd32(IGC_TLPIC);
311+
rd32(IGC_RLPIC);
310312
rd32(IGC_HGPTC);
311313
rd32(IGC_HGORCL);
312314
rd32(IGC_HGORCH);

drivers/net/ethernet/intel/igc/igc_regs.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,8 @@
188188
#define IGC_ICTXQEC 0x04118 /* Interrupt Cause Tx Queue Empty Count */
189189
#define IGC_ICTXQMTC 0x0411C /* Interrupt Cause Tx Queue Min Thresh Count */
190190
#define IGC_RPTHC 0x04104 /* Rx Packets To Host */
191+
#define IGC_TLPIC 0x04148 /* EEE Tx LPI Count */
192+
#define IGC_RLPIC 0x0414C /* EEE Rx LPI Count */
191193
#define IGC_HGPTC 0x04118 /* Host Good Packets Tx Count */
192194
#define IGC_RXDMTC 0x04120 /* Rx Descriptor Minimum Threshold Count */
193195
#define IGC_HGORCL 0x04128 /* Host Good Octets Received Count Low */

0 commit comments

Comments
 (0)