summaryrefslogtreecommitdiff
path: root/sys/arch/sgi/dev
diff options
context:
space:
mode:
authorMartin Pieuchot <mpi@cvs.openbsd.org>2015-06-24 09:40:56 +0000
committerMartin Pieuchot <mpi@cvs.openbsd.org>2015-06-24 09:40:56 +0000
commitee49ce9ce8936e7fbb0ed99da45133d8fc372ef2 (patch)
tree6e68c8d10c737f74759fbbb728e59ba96772fdb4 /sys/arch/sgi/dev
parent6f311cd2637c672a39862ca5d613b5a66dc6060b (diff)
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/arch/sgi/dev')
-rw-r--r--sys/arch/sgi/dev/if_iec.c4
-rw-r--r--sys/arch/sgi/dev/if_mec.c4
2 files changed, 2 insertions, 6 deletions
diff --git a/sys/arch/sgi/dev/if_iec.c b/sys/arch/sgi/dev/if_iec.c
index f9c7495ae78..6a66bf32e45 100644
--- a/sys/arch/sgi/dev/if_iec.c
+++ b/sys/arch/sgi/dev/if_iec.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_iec.c,v 1.13 2015/03/11 22:14:43 mpi Exp $ */
+/* $OpenBSD: if_iec.c,v 1.14 2015/06/24 09:40:53 mpi Exp $ */
/*
* Copyright (c) 2009 Miodrag Vallat.
@@ -1302,8 +1302,6 @@ dropit:
rxd->rxd_stat = 0;
IEC_RXSTATSYNC(sc, i, BUS_DMASYNC_PREREAD);
- ifp->if_ipackets++;
-
ml_enqueue(&ml, m);
}
diff --git a/sys/arch/sgi/dev/if_mec.c b/sys/arch/sgi/dev/if_mec.c
index 33859bf96bc..1acf49eb7b4 100644
--- a/sys/arch/sgi/dev/if_mec.c
+++ b/sys/arch/sgi/dev/if_mec.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_mec.c,v 1.29 2015/03/11 16:08:54 mpi Exp $ */
+/* $OpenBSD: if_mec.c,v 1.30 2015/06/24 09:40:53 mpi Exp $ */
/* $NetBSD: if_mec_mace.c,v 1.5 2004/08/01 06:36:36 tsutsui Exp $ */
/*
@@ -1308,8 +1308,6 @@ mec_rxintr(struct mec_softc *sc, uint32_t stat)
m->m_pkthdr.len = m->m_len = len - ETHER_CRC_LEN;
- ifp->if_ipackets++;
-
ml_enqueue(&ml, m);
}