diff options
author | Martin Pieuchot <mpi@cvs.openbsd.org> | 2015-04-08 10:07:48 +0000 |
---|---|---|
committer | Martin Pieuchot <mpi@cvs.openbsd.org> | 2015-04-08 10:07:48 +0000 |
commit | 8039d47b3db01a6f217429b0b9712a98dc51ce9a (patch) | |
tree | 975bbc68e9062a3bc589de2cd64af866ac6e6b9d /sys/arch/sparc/dev | |
parent | 57c48b07e29f5921d3406cc0a75cb741145024f0 (diff) |
Convert to if_input().
ok dlg@
Diffstat (limited to 'sys/arch/sparc/dev')
-rw-r--r-- | sys/arch/sparc/dev/hme.c | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/sys/arch/sparc/dev/hme.c b/sys/arch/sparc/dev/hme.c index c54cc48d66f..69202b34cc3 100644 --- a/sys/arch/sparc/dev/hme.c +++ b/sys/arch/sparc/dev/hme.c @@ -1,4 +1,4 @@ -/* $OpenBSD: hme.c,v 1.67 2014/12/22 02:26:54 tedu Exp $ */ +/* $OpenBSD: hme.c,v 1.68 2015/04/08 10:07:47 mpi Exp $ */ /* * Copyright (c) 1998 Jason L. Wright (jason@thought.net) @@ -815,6 +815,7 @@ hme_read(sc, idx, len, flags) u_int32_t flags; { struct ifnet *ifp = &sc->sc_arpcom.ac_if; + struct mbuf_list ml = MBUF_LIST_INITIALIZER(); struct mbuf *m; if (len <= sizeof(struct ether_header) || @@ -835,16 +836,8 @@ hme_read(sc, idx, len, flags) ifp->if_ipackets++; -#if NBPFILTER > 0 - /* - * Check if there's a BPF listener on this interface. - * If so, hand off the raw packet to BPF. - */ - if (ifp->if_bpf) - bpf_mtap(ifp->if_bpf, m, BPF_DIRECTION_IN); -#endif - /* Pass the packet up. */ - ether_input_mbuf(ifp, m); + ml_enqueue(&ml, m); + if_input(ifp, &ml); } void |