igc: Add LPI counters
Subsystems (2)
PATCH 1/1 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 ocuurs when the receiver detect link partner entry into EEE(IEEE 802.3az) LPI state.
--- drivers/net/ethernet/intel/igc/igc_mac.c | 2 ++ drivers/net/ethernet/intel/igc/igc_regs.h | 2 ++ 2 files changed, 4 insertions(+)
drivers/net/ethernet/intel/igc/igc_mac.c +2 -0
@@ -307,6 +307,8 @@ void igc_clear_hw_cntrs_base(struct igc_hw *hw)rd32 (IGC_ICRXDMTC );rd32 (IGC_RPTHC ); +rd32 (IGC_TLPIC ); +rd32 (IGC_RLPIC );rd32 (IGC_HGPTC );rd32 (IGC_HGORCL );rd32 (IGC_HGORCH );
drivers/net/ethernet/intel/igc/igc_regs.h +2 -0
@@ -188,6 +188,8 @@#define IGC_ICTXQEC 0x04118/* Interrupt Cause Tx Queue Empty Count */ #define IGC_ICTXQMTC 0x0411C/* Interrupt Cause Tx Queue Min Thresh Count */ #define IGC_RPTHC 0x04104/* Rx Packets To Host */ +#define IGC_TLPIC 0x04148/* EEE Tx LPI Count */ +#define IGC_RLPIC 0x0414C/* EEE Rx LPI Count */ #define IGC_HGPTC 0x04118/* Host Good Packets Tx Count */ #define IGC_RXDMTC 0x04120/* Rx Descriptor Minimum Threshold Count */ #define IGC_HGORCL 0x04128/* Host Good Octets Received Count Low */
Signature · 1 line
2.11.0
Brown
PATCH 1/1 igc: Add LPI counters
Quoted 10 lines
From: Intel-wired-lan <[email protected]> On Behalf Of Sasha Neftin
Sent: Thursday, June 4, 2020 4:25 AM
To: intel-wired-lan at lists.osuosl.org
Subject: [Intel-wired-lan] [PATCH v1 1/1] igc: Add LPI countersAdd 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 ocuurs when the receiver detect link partner entry into EEE(IEEE 802.3az) LPI state.
Are these counters exposed anywhere I can view them?
Neftin
PATCH 1/1 igc: Add LPI counters
Quoted 6 lines · Aaron F
Quoted 6 lines
From: Intel-wired-lan <[email protected]> On Behalf Of Sasha Neftin
Sent: Thursday, June 4, 2020 4:25 AM
To: intel-wired-lan at lists.osuosl.org
Subject: [Intel-wired-lan] [PATCH v1 1/1] igc: Add LPI counters
Quoted 6 lines
Quoted 4 lines
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 ocuurs when the receiver detect link partner entry into EEE(IEEE 802.3az) LPI state.
Are these counters exposed anywhere I can view them?
Just added relevant LPI registers. EEE support only in initial phase, many stuff will be added later.
Quoted 1 line
Brown
PATCH 1/1 igc: Add LPI counters
Quoted 14 lines
From: Neftin, Sasha <[email protected]>
Sent: Tuesday, June 23, 2020 8:24 PM
To: Brown, Aaron F <[email protected]>; intel-wired- lan at lists.osuosl.org
Subject: Re: [Intel-wired-lan] [PATCH v1 1/1] igc: Add LPI countersQuoted 1 line · Aaron F
Quoted 1 line
From: Intel-wired-lan <[email protected]> On Behalf
Of
Quoted 5 lines
Quoted 5 lines
Sasha Neftin
Sent: Thursday, June 4, 2020 4:25 AM
To: intel-wired-lan at lists.osuosl.org
Subject: [Intel-wired-lan] [PATCH v1 1/1] igc: Add LPI counters
Quoted 8 lines
Quoted 6 lines
Quoted 4 lines
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 ocuurs when the receiver detect link partner entry into EEE(IEEE 802.3az) LPI state.
Are these counters exposed anywhere I can view them?
Just added relevant LPI registers. EEE support only in initial phase, many stuff will be added later.
Ok, thanks.