aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/e1000
diff options
context:
space:
mode:
authorAndrew Gallatin <gallatin@FreeBSD.org>2025-09-10 13:17:35 +0000
committerAndrew Gallatin <gallatin@FreeBSD.org>2025-09-10 13:55:24 +0000
commit6577e32ea2c7868c275eae6d1c68f1c37d418c71 (patch)
treef856e372f9c9347415f303c2948a3e9dd6a9dbed /sys/dev/e1000
parent9365a328596c9f156deaa15fa018b76b3a6e6b18 (diff)
Diffstat (limited to 'sys/dev/e1000')
-rw-r--r--sys/dev/e1000/if_em.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/e1000/if_em.c b/sys/dev/e1000/if_em.c
index 9c5ae2806f75..60959fe679b8 100644
--- a/sys/dev/e1000/if_em.c
+++ b/sys/dev/e1000/if_em.c
@@ -4782,8 +4782,8 @@ em_if_get_counter(if_ctx_t ctx, ift_counter cnt)
sc->stats.ruc + sc->stats.roc +
sc->stats.mpc + sc->stats.cexterr);
case IFCOUNTER_OERRORS:
- return (sc->stats.ecol + sc->stats.latecol +
- sc->watchdog_events);
+ return (if_get_counter_default(ifp, cnt) +
+ sc->stats.ecol + sc->stats.latecol + sc->watchdog_events);
default:
return (if_get_counter_default(ifp, cnt));
}