diff options
| author | Sasha Neftin <sasha.neftin@intel.com> | 2025-02-07 12:45:14 +0000 |
|---|---|---|
| committer | Kevin Bowling <kbowling@FreeBSD.org> | 2026-08-11 20:48:22 +0000 |
| commit | d1c20195c0fae27b6b1d526c03d8844f200e5c86 (patch) | |
| tree | fef7add531fb21055a25cb7df4f3007eb5597bde | |
| parent | c80aface0f4662c7dc46eed3fbb27b64ab931500 (diff) | |
e1000: add LPI counters
DPDK commit message
net/e1000/base: add LPI counters
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.neftin@intel.com>
Signed-off-by: Anatoly Burakov <anatoly.burakov@intel.com>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
Obtained from: DPDK (2e8078ee69)
MFC after: 2 weeks
| -rw-r--r-- | sys/dev/e1000/e1000_hw.h | 2 | ||||
| -rw-r--r-- | sys/dev/e1000/e1000_mac.c | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/sys/dev/e1000/e1000_hw.h b/sys/dev/e1000/e1000_hw.h index 75f8953f2fdb..980aaedf845b 100644 --- a/sys/dev/e1000/e1000_hw.h +++ b/sys/dev/e1000/e1000_hw.h @@ -653,6 +653,8 @@ struct e1000_hw_stats { u64 o2bspc; u64 b2ospc; u64 b2ogprc; + u64 tlpic; + u64 rlpic; }; struct e1000_vf_stats { diff --git a/sys/dev/e1000/e1000_mac.c b/sys/dev/e1000/e1000_mac.c index c61f5b47b746..23cc89f92c6e 100644 --- a/sys/dev/e1000/e1000_mac.c +++ b/sys/dev/e1000/e1000_mac.c @@ -703,6 +703,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); } /** |
