From: Sasha Neftin <sasha.nef...@intel.com>

Add new fields in structure to indicate if EEE LPI entries have been
observed on Tx and Rx path.

Signed-off-by: Sasha Neftin <sasha.nef...@intel.com>
Signed-off-by: Anatoly Burakov <anatoly.bura...@intel.com>
---
 drivers/net/intel/e1000/base/e1000_hw.h  | 2 ++
 drivers/net/intel/e1000/base/e1000_mac.c | 2 ++
 2 files changed, 4 insertions(+)

diff --git a/drivers/net/intel/e1000/base/e1000_hw.h 
b/drivers/net/intel/e1000/base/e1000_hw.h
index 7ef856226d..1b8292191a 100644
--- a/drivers/net/intel/e1000/base/e1000_hw.h
+++ b/drivers/net/intel/e1000/base/e1000_hw.h
@@ -645,6 +645,8 @@ struct e1000_hw_stats {
        u64 o2bspc;
        u64 b2ospc;
        u64 b2ogprc;
+       u64 tlpic;
+       u64 rlpic;
 };
 
 struct e1000_vf_stats {
diff --git a/drivers/net/intel/e1000/base/e1000_mac.c 
b/drivers/net/intel/e1000/base/e1000_mac.c
index 0db114c0df..64486f4e4b 100644
--- a/drivers/net/intel/e1000/base/e1000_mac.c
+++ b/drivers/net/intel/e1000/base/e1000_mac.c
@@ -668,6 +668,8 @@ void e1000_clear_hw_cntrs_base_generic(struct e1000_hw *hw)
        E1000_READ_REG(hw, E1000_TPT);
        E1000_READ_REG(hw, E1000_MPTC);
        E1000_READ_REG(hw, E1000_BPTC);
+       E1000_READ_REG(hw, E1000_TLPIC);
+       E1000_READ_REG(hw, E1000_RLPIC);
 }
 
 /**
-- 
2.43.5

Reply via email to