aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/e1000
diff options
context:
space:
mode:
authorJohn-Mark Gurney <jmg@FreeBSD.org>2025-09-15 21:29:11 +0000
committerJohn-Mark Gurney <jmg@FreeBSD.org>2025-09-15 21:43:54 +0000
commite1bc42cb1551ca2a18ef60c38247fb5dc2509ea2 (patch)
tree5cbf953805c4af5d0fbeefcff03429254bfe184e /sys/dev/e1000
parent27699e31fa50e2bee6fdd0b5a0bfb92b4d35d7b7 (diff)
Diffstat (limited to 'sys/dev/e1000')
-rw-r--r--sys/dev/e1000/if_em.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/e1000/if_em.c b/sys/dev/e1000/if_em.c
index 20df466b4e76..247cf9d7fed3 100644
--- a/sys/dev/e1000/if_em.c
+++ b/sys/dev/e1000/if_em.c
@@ -4815,7 +4815,8 @@ em_if_get_vf_counter(if_ctx_t ctx, ift_counter cnt)
case IFCOUNTER_IERRORS:
return sc->dropped_pkts;
case IFCOUNTER_OERRORS:
- return sc->watchdog_events;
+ return (if_get_counter_default(ifp, cnt) +
+ sc->watchdog_events);
default:
return (if_get_counter_default(ifp, cnt));
}