expose hardware counters as kstats.
authordlg <dlg@openbsd.org>
Mon, 6 May 2024 04:25:52 +0000 (04:25 +0000)
committerdlg <dlg@openbsd.org>
Mon, 6 May 2024 04:25:52 +0000 (04:25 +0000)
commitbf6ccf138180c273e56cf6e40945cfa20d0360fe
tree4e9297577bf42377e4c290b1dd66272c2043f762
parent683ee047e55d47fa7d089b76fc7c0bec4109e133
expose hardware counters as kstats.

igc(4) counters are read to clear like em(4) counters, so this code
looks very much like em(4) but with less quirks so far.

ok bluhm@ bket@
sys/dev/pci/if_igc.c
sys/dev/pci/if_igc.h
sys/dev/pci/igc_regs.h