From 7af864ca270b3cc3163500bc4fb3aa34efd4cbdb Mon Sep 17 00:00:00 2001 From: Chris Cappuccio Date: Fri, 20 Feb 2015 23:24:31 +0000 Subject: Now that if_input() is a thing, use it ok dlg@ --- sys/dev/pci/if_myx.c | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/sys/dev/pci/if_myx.c b/sys/dev/pci/if_myx.c index e21414dcb10..c95a41310bf 100644 --- a/sys/dev/pci/if_myx.c +++ b/sys/dev/pci/if_myx.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_myx.c,v 1.74 2015/02/18 23:58:34 dlg Exp $ */ +/* $OpenBSD: if_myx.c,v 1.75 2015/02/20 23:24:30 chris Exp $ */ /* * Copyright (c) 2007 Reyk Floeter @@ -1862,7 +1862,6 @@ myx_rxeof(struct myx_softc *sc) m = mb->mb_m; m->m_data += ETHER_ALIGN; - m->m_pkthdr.rcvif = ifp; m->m_pkthdr.len = m->m_len = len; ml_enqueue(&ml, m); @@ -1891,15 +1890,7 @@ myx_rxeof(struct myx_softc *sc) ifp->if_ipackets += ml_len(&ml); KERNEL_LOCK(); -#if NBPFILTER > 0 - if (ifp->if_bpf) { - MBUF_LIST_FOREACH(&ml, m) - bpf_mtap(ifp->if_bpf, m, BPF_DIRECTION_IN); - } -#endif - - while ((m = ml_dequeue(&ml)) != NULL) - ether_input_mbuf(ifp, m); + if_input(ifp, &ml); KERNEL_UNLOCK(); } -- cgit v1.2.3