summaryrefslogtreecommitdiffstats
path: root/sys/dev/ic/lemac.c
diff options
context:
space:
mode:
authormpi <mpi@openbsd.org>2015-06-24 09:40:53 +0000
committermpi <mpi@openbsd.org>2015-06-24 09:40:53 +0000
commitdb4dc9aafbed936e879d4362ca141e998a6e925c (patch)
treedf98e73a3cab3c7738c665fd003541280cfc7446 /sys/dev/ic/lemac.c
parentIntroduce Linux work queue APIs and use them. As a side-effect, this will (diff)
downloadwireguard-openbsd-db4dc9aafbed936e879d4362ca141e998a6e925c.tar.xz
wireguard-openbsd-db4dc9aafbed936e879d4362ca141e998a6e925c.zip
Increment if_ipackets in if_input().
Note that pseudo-drivers not using if_input() are not affected by this conversion. ok mikeb@, kettenis@, claudio@, dlg@
Diffstat (limited to 'sys/dev/ic/lemac.c')
-rw-r--r--sys/dev/ic/lemac.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/dev/ic/lemac.c b/sys/dev/ic/lemac.c
index d9c16ccac71..d82155d8975 100644
--- a/sys/dev/ic/lemac.c
+++ b/sys/dev/ic/lemac.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: lemac.c,v 1.19 2015/04/06 09:13:55 miod Exp $ */
+/* $OpenBSD: lemac.c,v 1.20 2015/06/24 09:40:54 mpi Exp $ */
/* $NetBSD: lemac.c,v 1.20 2001/06/13 10:46:02 wiz Exp $ */
/*-
@@ -312,7 +312,6 @@ lemac_rne_intr(struct lemac_softc *sc)
unsigned rxpg = LEMAC_INB(sc, LEMAC_REG_RQ);
u_int32_t rxlen;
- ifp->if_ipackets++;
if (LEMAC_USE_PIO_MODE(sc)) {
LEMAC_OUTB(sc, LEMAC_REG_IOP, rxpg);
LEMAC_OUTB(sc, LEMAC_REG_PI1, 0);