CVSROOT:        /cvs
Module name:    src
Changes by:     d...@cvs.openbsd.org    2020/07/13 04:35:55

Modified files:
        sys/dev/pci    : if_em.h if_em_hw.c if_em_hw.h 

Log message:
add kstat support for reading hardware counters.

this replaces the existing counters implementation, which just
collected the stats in the softc, but didn't really provide a way
for a person to read them.

em counters get cleared on read. a lot of them are 32bit, so to
avoid overflow the counters are polled and the newly accumulated
values are added to some 64 bit counters in software.

tested by hrvoje popovski and SAITOH Masanobu
ok mpi@

i missed these files when i committed src/sys/dev/pci/if_em.c r1.356.
thanks to jsg for pointing this out.

Reply via email to