summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Wright <jason@cvs.openbsd.org>2002-09-22 15:56:18 +0000
committerJason Wright <jason@cvs.openbsd.org>2002-09-22 15:56:18 +0000
commit20184b9947874b6c1e5d1e3260fe10bab3f846ef (patch)
treef8b96ee84b8ba347e202ad0ffd206127876d41ef
parent41a0a0f690b08db2d7e4aef411a5e11800a96986 (diff)
Update ifp->if_opackets correctly
-rw-r--r--sys/dev/ic/gem.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/ic/gem.c b/sys/dev/ic/gem.c
index 81170a79f42..beacde2f72a 100644
--- a/sys/dev/ic/gem.c
+++ b/sys/dev/ic/gem.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: gem.c,v 1.27 2002/08/28 11:05:02 art Exp $ */
+/* $OpenBSD: gem.c,v 1.28 2002/09/22 15:56:17 jason Exp $ */
/* $NetBSD: gem.c,v 1.1 2001/09/16 00:11:43 eeh Exp $ */
/*
@@ -1649,6 +1649,7 @@ gem_tint(sc, status)
sd->sd_mbuf = NULL;
}
sc->sc_tx_cnt--;
+ ifp->if_opackets++;
if (++cons == GEM_NTXDESC)
cons = 0;
}