summaryrefslogtreecommitdiff
path: root/sys/arch/sparc
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/sparc
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/sparc')
-rw-r--r--sys/arch/sparc/dev/be.c3
-rw-r--r--sys/arch/sparc/dev/hme.c4
-rw-r--r--sys/arch/sparc/dev/if_ie.c4
-rw-r--r--sys/arch/sparc/dev/qe.c3
4 files changed, 4 insertions, 10 deletions
diff --git a/sys/arch/sparc/dev/be.c b/sys/arch/sparc/dev/be.c
index 256ce82f21f..1fdd86b11cb 100644
--- a/sys/arch/sparc/dev/be.c
+++ b/sys/arch/sparc/dev/be.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: be.c,v 1.50 2015/03/29 10:59:47 mpi Exp $ */
+/* $OpenBSD: be.c,v 1.51 2015/06/24 09:40:53 mpi Exp $ */
/*
* Copyright (c) 1998 Theo de Raadt and Jason L. Wright.
@@ -1009,7 +1009,6 @@ be_read(sc, idx, len)
ifp->if_ierrors++;
return;
}
- ifp->if_ipackets++;
ml_enqueue(&ml, m);
if_input(ifp, &ml);
diff --git a/sys/arch/sparc/dev/hme.c b/sys/arch/sparc/dev/hme.c
index f2c48147eba..79d6a966675 100644
--- a/sys/arch/sparc/dev/hme.c
+++ b/sys/arch/sparc/dev/hme.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: hme.c,v 1.69 2015/04/13 08:45:48 mpi Exp $ */
+/* $OpenBSD: hme.c,v 1.70 2015/06/24 09:40:53 mpi Exp $ */
/*
* Copyright (c) 1998 Jason L. Wright (jason@thought.net)
@@ -834,8 +834,6 @@ hme_read(sc, idx, len, flags)
return;
}
- ifp->if_ipackets++;
-
ml_enqueue(&ml, m);
if_input(ifp, &ml);
}
diff --git a/sys/arch/sparc/dev/if_ie.c b/sys/arch/sparc/dev/if_ie.c
index 6930e5e784c..536b6f73a79 100644
--- a/sys/arch/sparc/dev/if_ie.c
+++ b/sys/arch/sparc/dev/if_ie.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_ie.c,v 1.52 2015/05/25 12:40:04 miod Exp $ */
+/* $OpenBSD: if_ie.c,v 1.53 2015/06/24 09:40:53 mpi Exp $ */
/* $NetBSD: if_ie.c,v 1.33 1997/07/29 17:55:38 fair Exp $ */
/*-
@@ -783,7 +783,6 @@ ierint(sc)
status = sc->rframes[i]->ie_fd_status;
if ((status & IE_FD_COMPLETE) && (status & IE_FD_OK)) {
- sc->sc_arpcom.ac_if.if_ipackets++;
if (!--timesthru) {
sc->sc_arpcom.ac_if.if_ierrors +=
SWAP(scb->ie_err_crc) +
@@ -1260,7 +1259,6 @@ ie_readframe(sc, num)
ml_enqueue(&ml, m);
if_input(&sc->sc_arpcom.ac_if, &ml);
- sc->sc_arpcom.ac_if.if_ipackets++;
}
void
diff --git a/sys/arch/sparc/dev/qe.c b/sys/arch/sparc/dev/qe.c
index 399c76d85fe..9295dc16dc7 100644
--- a/sys/arch/sparc/dev/qe.c
+++ b/sys/arch/sparc/dev/qe.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: qe.c,v 1.39 2015/03/29 10:59:47 mpi Exp $ */
+/* $OpenBSD: qe.c,v 1.40 2015/06/24 09:40:53 mpi Exp $ */
/*
* Copyright (c) 1998, 2000 Jason L. Wright.
@@ -768,7 +768,6 @@ qe_read(sc, idx, len)
ifp->if_ierrors++;
return;
}
- ifp->if_ipackets++;
ml_enqueue(&ml, m);
if_input(ifp, &ml);