The branch main has been updated by kbowling:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=d1c20195c0fae27b6b1d526c03d8844f200e5c86

commit d1c20195c0fae27b6b1d526c03d8844f200e5c86
Author:     Sasha Neftin <[email protected]>
AuthorDate: 2025-02-07 12:45:14 +0000
Commit:     Kevin Bowling <[email protected]>
CommitDate: 2026-08-11 20:48:22 +0000

    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 <[email protected]>
    Signed-off-by: Anatoly Burakov <[email protected]>
    Acked-by: Bruce Richardson <[email protected]>
    
    Obtained from:  DPDK (2e8078ee69)
    MFC after:      2 weeks
---
 sys/dev/e1000/e1000_hw.h  | 2 ++
 sys/dev/e1000/e1000_mac.c | 2 ++
 2 files changed, 4 insertions(+)

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);
 }
 
 /**

Reply via email to