aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/ie
diff options
context:
space:
mode:
authorAlexander V. Chernikov <melifaro@FreeBSD.org>2014-09-28 19:05:22 +0000
committerAlexander V. Chernikov <melifaro@FreeBSD.org>2014-09-28 19:05:22 +0000
commitc6682d59068eb7d59c06f82468655cd4bbeb9133 (patch)
treee4909fbdd34263e4844e31d151f591336d51f6a0 /sys/dev/ie
parent03f90784bf93e340f15c88423dd926de57da8b39 (diff)
downloadsrc-c6682d59068eb7d59c06f82468655cd4bbeb9133.tar.gz
src-c6682d59068eb7d59c06f82468655cd4bbeb9133.zip
Convert most BPF_TAP users to BPF_MTAP.
MFC after: 2 weeks
Notes
Notes: svn path=/head/; revision=272266
Diffstat (limited to 'sys/dev/ie')
-rw-r--r--sys/dev/ie/if_ie.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/sys/dev/ie/if_ie.c b/sys/dev/ie/if_ie.c
index eceac6c52120..72e2559cdb0c 100644
--- a/sys/dev/ie/if_ie.c
+++ b/sys/dev/ie/if_ie.c
@@ -949,6 +949,8 @@ iestart_locked(struct ifnet *ifp)
if (!m)
break;
+ BPF_MTAP(ifp, m);
+
buffer = sc->xmit_cbuffs[sc->xmit_count];
len = 0;
@@ -961,13 +963,6 @@ iestart_locked(struct ifnet *ifp)
m_freem(m0);
len = max(len, ETHER_MIN_LEN);
- /*
- * See if bpf is listening on this interface, let it see the
- * packet before we commit it to the wire.
- */
- BPF_TAP(sc->ifp,
- (void *)sc->xmit_cbuffs[sc->xmit_count], len);
-
sc->xmit_buffs[sc->xmit_count]->ie_xmit_flags =
IE_XMIT_LAST|len;
sc->xmit_buffs[sc->xmit_count]->ie_xmit_next = 0xffff;