summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorMartin Pieuchot <mpi@cvs.openbsd.org>2015-03-24 10:09:07 +0000
committerMartin Pieuchot <mpi@cvs.openbsd.org>2015-03-24 10:09:07 +0000
commit939309bdd8a667096549e8943a2fb78856473aeb (patch)
treefad01844a45ad8fdfcee70dc4534b43b31446430 /sys/dev
parenta7a5ea034ba41dd582c5c2e4febd54f323dd614d (diff)
Convert to if_input() but I won't tell your the story of krw@
fighting trolls and daemons with old wireless cards to be able to find the correct hardware to test this diff.
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/pci/if_ale.c14
1 files changed, 5 insertions, 9 deletions
diff --git a/sys/dev/pci/if_ale.c b/sys/dev/pci/if_ale.c
index 9d89775a2df..8f23cd23f06 100644
--- a/sys/dev/pci/if_ale.c
+++ b/sys/dev/pci/if_ale.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_ale.c,v 1.36 2015/03/14 03:38:48 jsg Exp $ */
+/* $OpenBSD: if_ale.c,v 1.37 2015/03/24 10:09:06 mpi Exp $ */
/*-
* Copyright (c) 2008, Pyun YongHyeon <yongari@FreeBSD.org>
* All rights reserved.
@@ -1453,6 +1453,7 @@ int
ale_rxeof(struct ale_softc *sc)
{
struct ifnet *ifp = &sc->sc_arpcom.ac_if;
+ struct mbuf_list ml = MBUF_LIST_INITIALIZER();
struct ale_rx_page *rx_page;
struct rx_rs *rs;
struct mbuf *m;
@@ -1547,18 +1548,13 @@ ale_rxeof(struct ale_softc *sc)
}
#endif
-
-#if NBPFILTER > 0
- if (ifp->if_bpf)
- bpf_mtap_ether(ifp->if_bpf, m, BPF_DIRECTION_IN);
-#endif
-
- /* Pass it to upper layer. */
- ether_input_mbuf(ifp, m);
+ ml_enqueue(&ml, m);
ale_rx_update_page(sc, &rx_page, length, &prod);
}
+ if_input(ifp, &ml);
+
return 0;
}