summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbrad <brad@openbsd.org>2008-03-13 23:07:28 +0000
committerbrad <brad@openbsd.org>2008-03-13 23:07:28 +0000
commit587b290fb13cbf742aa97ff1b0f22615e130f19e (patch)
treea176cb0372a4db89836c269ea02ecd2df8963b78
parentAdd prtc(4). (diff)
downloadwireguard-openbsd-587b290fb13cbf742aa97ff1b0f22615e130f19e.tar.xz
wireguard-openbsd-587b290fb13cbf742aa97ff1b0f22615e130f19e.zip
Do not increment the input packet counter in these drivers as
ieee80211_input() already does this. Mentioned by Peter Philipp in PR 5248. ok claudio@ mglocker@
-rw-r--r--sys/dev/ic/acx.c3
-rw-r--r--sys/dev/ic/atw.c3
-rw-r--r--sys/dev/ic/pgt.c3
3 files changed, 3 insertions, 6 deletions
diff --git a/sys/dev/ic/acx.c b/sys/dev/ic/acx.c
index 8ff42b02ade..472ccf0f90c 100644
--- a/sys/dev/ic/acx.c
+++ b/sys/dev/ic/acx.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: acx.c,v 1.80 2007/11/26 09:28:33 martynas Exp $ */
+/* $OpenBSD: acx.c,v 1.81 2008/03/13 23:07:28 brad Exp $ */
/*
* Copyright (c) 2006 Jonathan Gray <jsg@openbsd.org>
@@ -1393,7 +1393,6 @@ acx_rxeof(struct acx_softc *sc)
letoh32(head->rbh_time));
ieee80211_release_node(ic, ni);
- ifp->if_ipackets++;
} else {
m_freem(m);
ifp->if_ierrors++;
diff --git a/sys/dev/ic/atw.c b/sys/dev/ic/atw.c
index f5ca6799052..3525221e361 100644
--- a/sys/dev/ic/atw.c
+++ b/sys/dev/ic/atw.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: atw.c,v 1.55 2007/09/30 11:33:14 kettenis Exp $ */
+/* $OpenBSD: atw.c,v 1.56 2008/03/13 23:07:29 brad Exp $ */
/* $NetBSD: atw.c,v 1.69 2004/07/23 07:07:55 dyoung Exp $ */
/*-
@@ -3176,7 +3176,6 @@ atw_rxintr(struct atw_softc *sc)
continue;
}
- ifp->if_ipackets++;
if (sc->sc_opmode & ATW_NAR_PR)
len -= IEEE80211_CRC_LEN;
m->m_pkthdr.rcvif = ifp;
diff --git a/sys/dev/ic/pgt.c b/sys/dev/ic/pgt.c
index 357d0b7098a..4b7c9ea9866 100644
--- a/sys/dev/ic/pgt.c
+++ b/sys/dev/ic/pgt.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pgt.c,v 1.46 2007/12/30 17:37:57 claudio Exp $ */
+/* $OpenBSD: pgt.c,v 1.47 2008/03/13 23:07:29 brad Exp $ */
/*
* Copyright (c) 2006 Claudio Jeker <claudio@openbsd.org>
@@ -1541,7 +1541,6 @@ pgt_datarx_completion(struct pgt_softc *sc, enum pgt_queue pq)
}
if (top) {
- ifp->if_ipackets++;
top->m_pkthdr.len = tlen;
top->m_pkthdr.rcvif = ifp;
}