expose hardware counters as kstats.
authordlg <dlg@openbsd.org>
Fri, 3 Jun 2022 10:38:40 +0000 (10:38 +0000)
committerdlg <dlg@openbsd.org>
Fri, 3 Jun 2022 10:38:40 +0000 (10:38 +0000)
commit7ae9b579616454f76f794752986e0973ec31e6aa
tree52dff698c342cbc794af67026aaadd927a985e3e
parent5d31b3e46be38dbbd3f1507d5f9e36bacb8f1200
expose hardware counters as kstats.

some of them are 16 bit, so check frequently.

now i can see what packets my apu1 is dropping in hardware.

ok claudio@
sys/dev/ic/re.c
sys/dev/ic/rtl81x9reg.h