summaryrefslogtreecommitdiff
path: root/sys/dev/pci
diff options
context:
space:
mode:
authorBrad Smith <brad@cvs.openbsd.org>2008-10-21 19:39:44 +0000
committerBrad Smith <brad@cvs.openbsd.org>2008-10-21 19:39:44 +0000
commitdcdc75212ea93ef49c35e9da7312d35913163115 (patch)
tree295c2a8e311c62926027d0f52133ec430c7ec7b5 /sys/dev/pci
parenta53a4e2427aa2a9c02987a8ed14041fecb7027c0 (diff)
Don't bounce transmitted packets up to the BPF listeners twice.
ok jsg@
Diffstat (limited to 'sys/dev/pci')
-rw-r--r--sys/dev/pci/if_jme.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/sys/dev/pci/if_jme.c b/sys/dev/pci/if_jme.c
index 2ad652a8a0d..b9805950387 100644
--- a/sys/dev/pci/if_jme.c
+++ b/sys/dev/pci/if_jme.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_jme.c,v 1.9 2008/10/20 19:40:54 brad Exp $ */
+/* $OpenBSD: if_jme.c,v 1.10 2008/10/21 19:39:43 brad Exp $ */
/*-
* Copyright (c) 2008, Pyun YongHyeon <yongari@FreeBSD.org>
* All rights reserved.
@@ -1217,11 +1217,6 @@ jme_start(struct ifnet *ifp)
if (m_head == NULL)
break;
-#if NBPFILTER > 0
- if (ifp->if_bpf != NULL)
- bpf_mtap(ifp->if_bpf, m_head, BPF_DIRECTION_OUT);
-#endif
-
/*
* Pack the data into the transmit ring. If we
* don't have room, set the OACTIVE flag and wait
@@ -1237,11 +1232,11 @@ jme_start(struct ifnet *ifp)
}
enq++;
+#if NBPFILTER > 0
/*
* If there's a BPF listener, bounce a copy of this frame
* to him.
*/
-#if NBPFILTER > 0
if (ifp->if_bpf != NULL)
bpf_mtap(ifp->if_bpf, m_head, BPF_DIRECTION_OUT);
#endif