diff options
author | Martin Pieuchot <mpi@cvs.openbsd.org> | 2015-04-08 12:58:25 +0000 |
---|---|---|
committer | Martin Pieuchot <mpi@cvs.openbsd.org> | 2015-04-08 12:58:25 +0000 |
commit | 16ed0eaaac2ed5a9fdd7945614af3a59d35e21b7 (patch) | |
tree | 309f15ff71a0cf225309e44a016d9be515b223a5 /sys | |
parent | c57348e0ee6ff04348ddbd8f5d9dc97a255a448e (diff) |
Convert to if_input().
ok dlg@
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/ic/mtd8xx.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/sys/dev/ic/mtd8xx.c b/sys/dev/ic/mtd8xx.c index 473f9b775ca..e18c9aa1019 100644 --- a/sys/dev/ic/mtd8xx.c +++ b/sys/dev/ic/mtd8xx.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mtd8xx.c,v 1.24 2014/12/22 02:28:51 tedu Exp $ */ +/* $OpenBSD: mtd8xx.c,v 1.25 2015/04/08 12:58:24 mpi Exp $ */ /* * Copyright (c) 2003 Oleg Safiullin <form@pdp11.org.ru> @@ -874,6 +874,7 @@ mtd_intr(void *xsc) static void mtd_rxeof(struct mtd_softc *sc) { + struct mbuf_list ml = MBUF_LIST_INITIALIZER(); struct mbuf *m; struct ifnet *ifp; struct mtd_rx_desc *cur_rx; @@ -912,7 +913,7 @@ mtd_rxeof(struct mtd_softc *sc) continue; } else { mtd_init(ifp); - return; + break; } } @@ -934,13 +935,11 @@ mtd_rxeof(struct mtd_softc *sc) ifp->if_ipackets++; -#if NBPFILTER > 0 - if (ifp->if_bpf) - bpf_mtap(ifp->if_bpf, m, BPF_DIRECTION_IN); -#endif - ether_input_mbuf(ifp, m); + ml_enqueue(&ml, m); } + if_input(ifp, &ml); + sc->mtd_cdata.mtd_rx_prod = i; } |