Introduce softint-based if_input

This change intends to run the whole network stack in softint context
(or normal LWP), not hardware interrupt context. Note that the work is
still incomplete by this change; to that end, we also have to softint-ify
if_link_state_change (and bpf) which can still run in hardware interrupt.

This change softint-ifies at ifp->if_input that is called from
each device driver (and ieee80211_input) to ensure Layer 2 runs
in softint (e.g., ether_input and bridge_input). To this end,
we provide a framework (called percpuq) that utlizes softint(9)
and percpu ifqueues. With this patch, rxintr of most drivers just
queues received packets and schedules a softint, and the softint
dequeues packets and does rest packet processing.

To minimize changes to each driver, percpuq is allocated in struct
ifnet for now and that is initialized by default (in if_attach).
We probably have to move percpuq to softc of each driver, but it's
future work. At this point, only wm(4) has percpuq in its softc
as a reference implementation.

Additional information including performance numbers can be found
in the thread at tech-kern@ and tech-net@:
http://mail-index.netbsd.org/tech-kern/2016/01/14/msg019997.html

Acknowledgment: riastradh@ greatly helped this work.
Thank you very much!
This commit is contained in:
ozaki-r 2016-02-09 08:32:07 +00:00
parent b0bef51c1f
commit 9c4cd06355
155 changed files with 680 additions and 477 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: if_ie.c,v 1.35 2015/05/20 09:17:17 ozaki-r Exp $ */
/* $NetBSD: if_ie.c,v 1.36 2016/02/09 08:32:07 ozaki-r Exp $ */
/*
* Copyright (c) 1995 Melvin Tang-Richardson.
@ -53,7 +53,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: if_ie.c,v 1.35 2015/05/20 09:17:17 ozaki-r Exp $");
__KERNEL_RCSID(0, "$NetBSD: if_ie.c,v 1.36 2016/02/09 08:32:07 ozaki-r Exp $");
#define IGNORE_ETHER1_IDROM_CHECKSUM
@ -1282,7 +1282,7 @@ ie_read_frame(struct ie_softc *sc, int num)
bpf_mtap(ifp, m);
(*ifp->if_input)(ifp, m);
if_percpuq_enqueue(ifp->if_percpuq, m);
}
void

View File

@ -1,4 +1,4 @@
/* $NetBSD: if_es.c,v 1.53 2015/05/20 09:17:17 ozaki-r Exp $ */
/* $NetBSD: if_es.c,v 1.54 2016/02/09 08:32:07 ozaki-r Exp $ */
/*
* Copyright (c) 1995 Michael L. Hitch
@ -33,7 +33,7 @@
#include "opt_ns.h"
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: if_es.c,v 1.53 2015/05/20 09:17:17 ozaki-r Exp $");
__KERNEL_RCSID(0, "$NetBSD: if_es.c,v 1.54 2016/02/09 08:32:07 ozaki-r Exp $");
#include <sys/param.h>
@ -721,7 +721,7 @@ esrint(struct es_softc *sc)
* the raw packet to bpf.
*/
bpf_mtap(ifp, top);
(*ifp->if_input)(ifp, top);
if_percpuq_enqueue(ifp->if_percpuq, top);
#ifdef ESDEBUG
if (--sc->sc_smcbusy) {
printf("%s: esintr busy on exit\n", device_xname(sc->sc_dev));

View File

@ -1,4 +1,4 @@
/* $NetBSD: if_qn.c,v 1.40 2015/05/20 09:17:17 ozaki-r Exp $ */
/* $NetBSD: if_qn.c,v 1.41 2016/02/09 08:32:07 ozaki-r Exp $ */
/*
* Copyright (c) 1995 Mika Kortelainen
@ -66,7 +66,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: if_qn.c,v 1.40 2015/05/20 09:17:17 ozaki-r Exp $");
__KERNEL_RCSID(0, "$NetBSD: if_qn.c,v 1.41 2016/02/09 08:32:07 ozaki-r Exp $");
#include "qn.h"
#if NQN > 0
@ -585,7 +585,7 @@ qn_get_packet(struct qn_softc *sc, u_short len)
/* Tap off BPF listeners */
bpf_mtap(ifp, head);
(*ifp->if_input)(ifp, head);
if_percpuq_enqueue(ifp->if_percpuq, head);
return;
bad:

View File

@ -31,7 +31,7 @@
#include <sys/cdefs.h>
__KERNEL_RCSID(1, "$NetBSD: awin_eth.c,v 1.9 2015/04/13 21:18:40 riastradh Exp $");
__KERNEL_RCSID(1, "$NetBSD: awin_eth.c,v 1.10 2016/02/09 08:32:07 ozaki-r Exp $");
#include <sys/param.h>
#include <sys/bus.h>
@ -422,7 +422,7 @@ awin_eth_if_input(struct awin_eth_softc *sc, struct mbuf *m)
{
struct ifnet * const ifp = &sc->sc_ec.ec_if;
(*ifp->if_input)(ifp, m);
if_percpuq_enqueue(ifp->if_percpuq, m);
}
static void

View File

@ -1,5 +1,5 @@
/* $Id: at91emac.c,v 1.15 2015/09/21 13:31:30 skrll Exp $ */
/* $NetBSD: at91emac.c,v 1.15 2015/09/21 13:31:30 skrll Exp $ */
/* $Id: at91emac.c,v 1.16 2016/02/09 08:32:07 ozaki-r Exp $ */
/* $NetBSD: at91emac.c,v 1.16 2016/02/09 08:32:07 ozaki-r Exp $ */
/*
* Copyright (c) 2007 Embedtronics Oy
@ -33,7 +33,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: at91emac.c,v 1.15 2015/09/21 13:31:30 skrll Exp $");
__KERNEL_RCSID(0, "$NetBSD: at91emac.c,v 1.16 2016/02/09 08:32:07 ozaki-r Exp $");
#include <sys/types.h>
#include <sys/param.h>
@ -284,7 +284,7 @@ emac_intr(void *arg)
sc->rxq[bi].m->m_len = fl;
bpf_mtap(ifp, sc->rxq[bi].m);
DPRINTFN(2,("received %u bytes packet\n", fl));
(*ifp->if_input)(ifp, sc->rxq[bi].m);
if_percpuq_enqueue(ifp->if_percpuq, sc->rxq[bi].m);
if (mtod(m, intptr_t) & 3) {
m_adj(m, mtod(m, intptr_t) & 3);
}

View File

@ -35,7 +35,7 @@
#include <sys/cdefs.h>
__KERNEL_RCSID(1, "$NetBSD: bcm53xx_eth.c,v 1.26 2014/02/23 21:19:06 matt Exp $");
__KERNEL_RCSID(1, "$NetBSD: bcm53xx_eth.c,v 1.27 2016/02/09 08:32:08 ozaki-r Exp $");
#include <sys/param.h>
#include <sys/atomic.h>
@ -401,8 +401,9 @@ bcmeth_ccb_attach(device_t parent, device_t self, void *aux)
/*
* Attach the interface.
*/
if_attach(ifp);
if_initialize(ifp);
ether_ifattach(ifp, sc->sc_enaddr);
if_register(ifp);
#ifdef BCMETH_COUNTERS
evcnt_attach_dynamic(&sc->sc_ev_intr, EVCNT_TYPE_INTR,
@ -1020,12 +1021,12 @@ bcmeth_rx_input(
*/
#ifdef BCMETH_MPSAFE
mutex_exit(sc->sc_lock);
(*ifp->if_input)(ifp, m);
if_input(ifp, m);
mutex_enter(sc->sc_lock);
#else
int s = splnet();
bpf_mtap(ifp, m);
(*ifp->if_input)(ifp, m);
if_input(ifp, m);
splx(s);
#endif
}

View File

@ -1,4 +1,4 @@
/* $NetBSD: epe.c,v 1.32 2015/05/20 09:17:17 ozaki-r Exp $ */
/* $NetBSD: epe.c,v 1.33 2016/02/09 08:32:08 ozaki-r Exp $ */
/*
* Copyright (c) 2004 Jesse Off
@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: epe.c,v 1.32 2015/05/20 09:17:17 ozaki-r Exp $");
__KERNEL_RCSID(0, "$NetBSD: epe.c,v 1.33 2016/02/09 08:32:08 ozaki-r Exp $");
#include <sys/types.h>
#include <sys/param.h>
@ -231,7 +231,8 @@ begin:
sc->rxq[bi].m->m_pkthdr.len =
sc->rxq[bi].m->m_len = fl;
bpf_mtap(ifp, sc->rxq[bi].m);
(*ifp->if_input)(ifp, sc->rxq[bi].m);
if_percpuq_enqueue(ifp->if_percpuq,
sc->rxq[bi].m);
sc->rxq[bi].m = m;
bus_dmamap_load(sc->sc_dmat,
sc->rxq[bi].m_dmamap,

View File

@ -1,4 +1,4 @@
/* $NetBSD: gemini_gmac.c,v 1.7 2011/07/01 19:32:28 dyoung Exp $ */
/* $NetBSD: gemini_gmac.c,v 1.8 2016/02/09 08:32:08 ozaki-r Exp $ */
/*-
* Copyright (c) 2008 The NetBSD Foundation, Inc.
* All rights reserved.
@ -49,7 +49,7 @@
#include <sys/gpio.h>
__KERNEL_RCSID(0, "$NetBSD: gemini_gmac.c,v 1.7 2011/07/01 19:32:28 dyoung Exp $");
__KERNEL_RCSID(0, "$NetBSD: gemini_gmac.c,v 1.8 2016/02/09 08:32:08 ozaki-r Exp $");
#define SWFREEQ_DESCS 256 /* one page worth */
#define HWFREEQ_DESCS 256 /* one page worth */
@ -856,7 +856,7 @@ gmac_hwqueue_rxconsume(gmac_hwqueue_t *hwq, const gmac_desc_t *d)
m->m_data += 2;
KASSERT(m_length(m) == m->m_pkthdr.len);
bpf_mtap(ifp, m);
(*ifp->if_input)(ifp, m);
if_input(ifp, m);
break;
default:
ifp->if_ierrors++;

View File

@ -1,4 +1,4 @@
/* $NetBSD: if_gpn.c,v 1.4 2011/07/01 19:32:28 dyoung Exp $ */
/* $NetBSD: if_gpn.c,v 1.5 2016/02/09 08:32:08 ozaki-r Exp $ */
/*-
* Copyright (c) 2008 The NetBSD Foundation, Inc.
* All rights reserved.
@ -32,7 +32,7 @@
#include "opt_gemini.h"
__KERNEL_RCSID(0, "$NetBSD: if_gpn.c,v 1.4 2011/07/01 19:32:28 dyoung Exp $");
__KERNEL_RCSID(0, "$NetBSD: if_gpn.c,v 1.5 2016/02/09 08:32:08 ozaki-r Exp $");
#include <sys/param.h>
#include <sys/device.h>
@ -307,7 +307,7 @@ gpn_process_data(struct gpn_softc *sc, const ipm_gpn_desc_t *gd)
printf("%s: rx len=%d crc=%#x\n", ifp->if_xname,
m->m_pkthdr.len, m_crc32_le(m));
#endif
(*ifp->if_input)(ifp, m);
if_percpuq_enqueue(ifp->if_percpuq, m);
}
out:

View File

@ -1,4 +1,4 @@
/* $NetBSD: if_enet.c,v 1.4 2015/04/27 17:34:51 christos Exp $ */
/* $NetBSD: if_enet.c,v 1.5 2016/02/09 08:32:08 ozaki-r Exp $ */
/*
* Copyright (c) 2014 Ryo Shimizu <ryo@nerv.org>
@ -31,7 +31,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: if_enet.c,v 1.4 2015/04/27 17:34:51 christos Exp $");
__KERNEL_RCSID(0, "$NetBSD: if_enet.c,v 1.5 2016/02/09 08:32:08 ozaki-r Exp $");
#include "imxocotp.h"
#include "imxccm.h"
@ -755,7 +755,7 @@ enet_rx_intr(void *arg)
/* Pass this up to any BPF listeners */
bpf_mtap(ifp, m0);
(*ifp->if_input)(ifp, m0);
if_percpuq_enqueue(ifp->if_percpuq, m0);
}
m0 = NULL;

View File

@ -1,4 +1,4 @@
/* $NetBSD: if_cpsw.c,v 1.12 2015/04/16 21:50:35 jmcneill Exp $ */
/* $NetBSD: if_cpsw.c,v 1.13 2016/02/09 08:32:08 ozaki-r Exp $ */
/*
* Copyright (c) 2013 Jonathan A. Kollasch
@ -53,7 +53,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(1, "$NetBSD: if_cpsw.c,v 1.12 2015/04/16 21:50:35 jmcneill Exp $");
__KERNEL_RCSID(1, "$NetBSD: if_cpsw.c,v 1.13 2016/02/09 08:32:08 ozaki-r Exp $");
#include <sys/param.h>
#include <sys/bus.h>
@ -1170,7 +1170,7 @@ cpsw_rxintr(void *arg)
bpf_mtap(ifp, m);
(*ifp->if_input)(ifp, m);
if_percpuq_enqueue(ifp->if_percpuq, m);
next:
sc->sc_rxhead = RXDESC_NEXT(sc->sc_rxhead);

View File

@ -30,7 +30,7 @@
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: omapl1x_emac.c,v 1.2 2015/09/21 13:32:48 skrll Exp $");
__KERNEL_RCSID(0, "$NetBSD: omapl1x_emac.c,v 1.3 2016/02/09 08:32:08 ozaki-r Exp $");
#include "opt_omapl1x.h"
@ -658,7 +658,7 @@ emac_rx_desc_process (struct emac_softc *sc, struct emac_channel *chan)
ifp->if_ipackets++;
bpf_mtap(ifp, mb);
(*ifp->if_input)(ifp, mb);
if_percpuq_enqueue(ifp->if_percpuq, mb);
entry->m = NULL;

View File

@ -1,4 +1,4 @@
/* $NetBSD: rockchip_emac.c,v 1.12 2015/02/23 19:05:16 martin Exp $ */
/* $NetBSD: rockchip_emac.c,v 1.13 2016/02/09 08:32:08 ozaki-r Exp $ */
/*-
* Copyright (c) 2015 Jared D. McNeill <jmcneill@invisible.ca>
@ -29,7 +29,7 @@
#include "opt_rkemac.h"
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: rockchip_emac.c,v 1.12 2015/02/23 19:05:16 martin Exp $");
__KERNEL_RCSID(0, "$NetBSD: rockchip_emac.c,v 1.13 2016/02/09 08:32:08 ozaki-r Exp $");
#include <sys/param.h>
#include <sys/bus.h>
@ -879,7 +879,7 @@ rkemac_rxintr(struct rkemac_softc *sc)
bpf_mtap(ifp, m);
ifp->if_ipackets++;
ifp->if_input(ifp, m);
if_percpuq_enqueue(ifp->if_percpuq, m);
skip:
bus_dmamap_sync(sc->sc_dmat, rd->rd_map, 0,

View File

@ -1,4 +1,4 @@
/* $NetBSD: ixp425_if_npe.c,v 1.29 2015/06/28 15:13:28 maxv Exp $ */
/* $NetBSD: ixp425_if_npe.c,v 1.30 2016/02/09 08:32:08 ozaki-r Exp $ */
/*-
* Copyright (c) 2006 Sam Leffler. All rights reserved.
@ -28,7 +28,7 @@
#if 0
__FBSDID("$FreeBSD: src/sys/arm/xscale/ixp425/if_npe.c,v 1.1 2006/11/19 23:55:23 sam Exp $");
#endif
__KERNEL_RCSID(0, "$NetBSD: ixp425_if_npe.c,v 1.29 2015/06/28 15:13:28 maxv Exp $");
__KERNEL_RCSID(0, "$NetBSD: ixp425_if_npe.c,v 1.30 2016/02/09 08:32:08 ozaki-r Exp $");
/*
* Intel XScale NPE Ethernet driver.
@ -1055,7 +1055,7 @@ npe_rxdone(int qid, void *arg)
* Tap off here if there is a bpf listener.
*/
bpf_mtap(ifp, mrx);
ifp->if_input(ifp, mrx);
if_percpuq_enqueue(ifp->if_percpuq, mrx);
} else {
fail:
/* discard frame and re-use mbuf */

View File

@ -1,4 +1,4 @@
/* $NetBSD: if_le_ebus.c,v 1.7 2015/04/13 21:18:41 riastradh Exp $ */
/* $NetBSD: if_le_ebus.c,v 1.8 2016/02/09 08:32:08 ozaki-r Exp $ */
/*-
* Copyright (c) 2010 The NetBSD Foundation, Inc.
@ -31,7 +31,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: if_le_ebus.c,v 1.7 2015/04/13 21:18:41 riastradh Exp $");
__KERNEL_RCSID(0, "$NetBSD: if_le_ebus.c,v 1.8 2016/02/09 08:32:08 ozaki-r Exp $");
#include "opt_inet.h"
@ -768,7 +768,7 @@ enic_rint(struct enic_softc *sc, uint32_t saf, paddr_t phys)
bpf_mtap(ifp, m);
/* Pass the packet up. */
(*ifp->if_input)(ifp, m);
if_percpuq_enqueue(ifp->if_percpuq, m);
/* Need to refill now */
enic_refill(sc);

View File

@ -1,4 +1,4 @@
/* $NetBSD: if_temac.c,v 1.9 2012/07/22 14:32:51 matt Exp $ */
/* $NetBSD: if_temac.c,v 1.10 2016/02/09 08:32:08 ozaki-r Exp $ */
/*
* Copyright (c) 2006 Jachym Holecek
@ -40,7 +40,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: if_temac.c,v 1.9 2012/07/22 14:32:51 matt Exp $");
__KERNEL_RCSID(0, "$NetBSD: if_temac.c,v 1.10 2016/02/09 08:32:08 ozaki-r Exp $");
#include <sys/param.h>
@ -1211,7 +1211,7 @@ temac_rxreap(struct temac_softc *sc)
bpf_mtap(ifp, m);
ifp->if_ipackets++;
(ifp->if_input)(ifp, m);
if_percpuq_enqueue(ifp->if_percpuq, m);
/* Refresh descriptor, bail out if we're out of buffers. */
if (temac_rxalloc(sc, tail, 1) != 0) {

View File

@ -1,4 +1,4 @@
/* $NetBSD: if_mc.c,v 1.40 2013/10/19 19:47:55 martin Exp $ */
/* $NetBSD: if_mc.c,v 1.41 2016/02/09 08:32:08 ozaki-r Exp $ */
/*-
* Copyright (c) 1997 David Huang <khym@azeotrope.org>
@ -35,7 +35,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: if_mc.c,v 1.40 2013/10/19 19:47:55 martin Exp $");
__KERNEL_RCSID(0, "$NetBSD: if_mc.c,v 1.41 2016/02/09 08:32:08 ozaki-r Exp $");
#include "opt_ddb.h"
#include "opt_inet.h"
@ -585,7 +585,7 @@ mace_read(struct mc_softc *sc, void *pkt, int len)
bpf_mtap(ifp, m);
/* Pass the packet up. */
(*ifp->if_input)(ifp, m);
if_percpuq_enqueue(ifp->if_percpuq, m);
}
/*

View File

@ -1,4 +1,4 @@
/* $NetBSD: if_netdock_nubus.c,v 1.22 2012/10/27 17:17:59 chs Exp $ */
/* $NetBSD: if_netdock_nubus.c,v 1.23 2016/02/09 08:32:08 ozaki-r Exp $ */
/*
* Copyright (C) 2000,2002 Daishi Kato <daishi@axlight.com>
@ -43,7 +43,7 @@
/***********************/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: if_netdock_nubus.c,v 1.22 2012/10/27 17:17:59 chs Exp $");
__KERNEL_RCSID(0, "$NetBSD: if_netdock_nubus.c,v 1.23 2016/02/09 08:32:08 ozaki-r Exp $");
#include <sys/param.h>
#include <sys/device.h>
@ -766,7 +766,7 @@ netdock_read(struct netdock_softc *sc, int len)
bpf_mtap(ifp, m);
(*ifp->if_input)(ifp, m);
if_percpuq_enqueue(ifp->if_percpuq, m);
return (1);
}

View File

@ -1,4 +1,4 @@
/* $NetBSD: am79c950.c,v 1.33 2014/03/14 21:59:41 mrg Exp $ */
/* $NetBSD: am79c950.c,v 1.34 2016/02/09 08:32:08 ozaki-r Exp $ */
/*-
* Copyright (c) 1997 David Huang <khym@bga.com>
@ -35,7 +35,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: am79c950.c,v 1.33 2014/03/14 21:59:41 mrg Exp $");
__KERNEL_RCSID(0, "$NetBSD: am79c950.c,v 1.34 2016/02/09 08:32:08 ozaki-r Exp $");
#include "opt_inet.h"
@ -597,7 +597,7 @@ mace_read(struct mc_softc *sc, uint8_t *pkt, int len)
bpf_mtap(ifp, m);
/* Pass the packet up. */
(*ifp->if_input)(ifp, m);
if_percpuq_enqueue(ifp->if_percpuq, m);
}
/*

View File

@ -1,4 +1,4 @@
/* $NetBSD: if_bm.c,v 1.46 2012/07/22 14:32:51 matt Exp $ */
/* $NetBSD: if_bm.c,v 1.47 2016/02/09 08:32:08 ozaki-r Exp $ */
/*-
* Copyright (C) 1998, 1999, 2000 Tsubai Masanari. All rights reserved.
@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: if_bm.c,v 1.46 2012/07/22 14:32:51 matt Exp $");
__KERNEL_RCSID(0, "$NetBSD: if_bm.c,v 1.47 2016/02/09 08:32:08 ozaki-r Exp $");
#include "opt_inet.h"
@ -502,7 +502,7 @@ bmac_rint(void *v)
* If so, hand off the raw packet to BPF.
*/
bpf_mtap(ifp, m);
(*ifp->if_input)(ifp, m);
if_percpuq_enqueue(ifp->if_percpuq, m);
ifp->if_ipackets++;
next:

View File

@ -1,4 +1,4 @@
/* $NetBSD: if_gm.c,v 1.45 2015/04/13 21:18:42 riastradh Exp $ */
/* $NetBSD: if_gm.c,v 1.46 2016/02/09 08:32:08 ozaki-r Exp $ */
/*-
* Copyright (c) 2000 Tsubai Masanari. All rights reserved.
@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: if_gm.c,v 1.45 2015/04/13 21:18:42 riastradh Exp $");
__KERNEL_RCSID(0, "$NetBSD: if_gm.c,v 1.46 2016/02/09 08:32:08 ozaki-r Exp $");
#include "opt_inet.h"
@ -382,7 +382,7 @@ gmac_rint(struct gmac_softc *sc)
* If so, hand off the raw packet to BPF.
*/
bpf_mtap(ifp, m);
(*ifp->if_input)(ifp, m);
if_percpuq_enqueue(ifp->if_percpuq, m);
ifp->if_ipackets++;
next:

View File

@ -1,4 +1,4 @@
/* $NetBSD: if_admsw.c,v 1.12 2014/06/16 16:48:16 msaitoh Exp $ */
/* $NetBSD: if_admsw.c,v 1.13 2016/02/09 08:32:09 ozaki-r Exp $ */
/*-
* Copyright (c) 2007 Ruslan Ermilov and Vsevolod Lobko.
@ -76,7 +76,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: if_admsw.c,v 1.12 2014/06/16 16:48:16 msaitoh Exp $");
__KERNEL_RCSID(0, "$NetBSD: if_admsw.c,v 1.13 2016/02/09 08:32:09 ozaki-r Exp $");
#include <sys/param.h>
@ -1002,7 +1002,7 @@ admsw_rxintr(struct admsw_softc *sc, int high)
bpf_mtap(ifp, m);
/* Pass it on. */
(*ifp->if_input)(ifp, m);
if_percpuq_enqueue(ifp->if_percpuq, m);
ifp->if_ipackets++;
}
#ifdef ADMSW_EVENT_COUNTERS

View File

@ -1,4 +1,4 @@
/* $NetBSD: if_aumac.c,v 1.39 2015/04/13 21:18:42 riastradh Exp $ */
/* $NetBSD: if_aumac.c,v 1.40 2016/02/09 08:32:09 ozaki-r Exp $ */
/*
* Copyright (c) 2001 Wasabi Systems, Inc.
@ -46,7 +46,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: if_aumac.c,v 1.39 2015/04/13 21:18:42 riastradh Exp $");
__KERNEL_RCSID(0, "$NetBSD: if_aumac.c,v 1.40 2016/02/09 08:32:09 ozaki-r Exp $");
@ -719,7 +719,7 @@ aumac_rxintr(struct aumac_softc *sc)
bpf_mtap(ifp, m);
/* Pass it on. */
(*ifp->if_input)(ifp, m);
if_percpuq_enqueue(ifp->if_percpuq, m);
ifp->if_ipackets++;
}
if (pkts)

View File

@ -1,4 +1,4 @@
/* $Id: if_ae.c,v 1.26 2015/06/09 22:50:50 matt Exp $ */
/* $Id: if_ae.c,v 1.27 2016/02/09 08:32:09 ozaki-r Exp $ */
/*-
* Copyright (c) 2006 Urbana-Champaign Independent Media Center.
* Copyright (c) 2006 Garrett D'Amore.
@ -98,7 +98,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: if_ae.c,v 1.26 2015/06/09 22:50:50 matt Exp $");
__KERNEL_RCSID(0, "$NetBSD: if_ae.c,v 1.27 2016/02/09 08:32:09 ozaki-r Exp $");
#include <sys/param.h>
@ -1139,7 +1139,7 @@ ae_rxintr(struct ae_softc *sc)
bpf_mtap(ifp, m);
/* Pass it on. */
(*ifp->if_input)(ifp, m);
if_percpuq_enqueue(ifp->if_percpuq, m);
}
/* Update the receive pointer. */

View File

@ -1,8 +1,8 @@
/* $NetBSD: if_cnmac.c,v 1.1 2015/04/29 08:32:01 hikaru Exp $ */
/* $NetBSD: if_cnmac.c,v 1.2 2016/02/09 08:32:09 ozaki-r Exp $ */
#include <sys/cdefs.h>
#if 0
__KERNEL_RCSID(0, "$NetBSD: if_cnmac.c,v 1.1 2015/04/29 08:32:01 hikaru Exp $");
__KERNEL_RCSID(0, "$NetBSD: if_cnmac.c,v 1.2 2016/02/09 08:32:09 ozaki-r Exp $");
#endif
#include "opt_octeon.h"
@ -1489,7 +1489,7 @@ octeon_eth_recv(struct octeon_eth_softc *sc, uint64_t *work)
octeon_eth_send_queue_flush_sync(sc);
/* XXX XXX XXX */
(*ifp->if_input)(ifp, m);
if_percpuq_enqueue(ifp->if_percpuq, m);
return 0;
@ -1826,7 +1826,7 @@ octeon_eth_sysctl_verify(SYSCTLFN_ARGS)
octeon_eth_mii_statchg(ifp);
/* octeon_gmx_set_filter(sc->sc_gmx_port); */
}
ifp->if_input = ether_input;
ifp->_if_input = ether_input;
}
else {
if (!ISSET(ifp->if_flags, IFF_PROMISC)) {
@ -1834,7 +1834,7 @@ octeon_eth_sysctl_verify(SYSCTLFN_ARGS)
octeon_eth_mii_statchg(ifp);
/* octeon_gmx_set_filter(sc->sc_gmx_port); */
}
ifp->if_input = octeon_eth_recv_redir;
ifp->_if_input = octeon_eth_recv_redir;
}
}
splx(s);

View File

@ -1,4 +1,4 @@
/* $NetBSD: ralink_eth.c,v 1.6 2012/07/22 14:32:52 matt Exp $ */
/* $NetBSD: ralink_eth.c,v 1.7 2016/02/09 08:32:09 ozaki-r Exp $ */
/*-
* Copyright (c) 2011 CradlePoint Technology, Inc.
* All rights reserved.
@ -29,7 +29,7 @@
/* ralink_eth.c -- Ralink Ethernet Driver */
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: ralink_eth.c,v 1.6 2012/07/22 14:32:52 matt Exp $");
__KERNEL_RCSID(0, "$NetBSD: ralink_eth.c,v 1.7 2016/02/09 08:32:09 ozaki-r Exp $");
#include <sys/param.h>
#include <sys/bus.h>
@ -1490,7 +1490,7 @@ ralink_eth_rxintr(ralink_eth_softc_t *sc)
/* Pass it on. */
sc->sc_evcnt_input.ev_count++;
(*ifp->if_input)(ifp, m);
if_percpuq_enqueue(ifp->if_percpuq, m);
fe_write(sc, RA_FE_PDMA_RX0_CPU_IDX, rx_cpu_idx);
}

View File

@ -1,4 +1,4 @@
/* $NetBSD: sbmac.c,v 1.43 2014/10/18 08:33:26 snj Exp $ */
/* $NetBSD: sbmac.c,v 1.44 2016/02/09 08:32:09 ozaki-r Exp $ */
/*
* Copyright 2000, 2001, 2004
@ -33,7 +33,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: sbmac.c,v 1.43 2014/10/18 08:33:26 snj Exp $");
__KERNEL_RCSID(0, "$NetBSD: sbmac.c,v 1.44 2016/02/09 08:32:09 ozaki-r Exp $");
#include "opt_inet.h"
#include "opt_ns.h"
@ -938,7 +938,7 @@ sbdma_rx_process(struct sbmac_softc *sc, sbmacdma_t *d)
/*
* Pass the buffer to the kernel
*/
(*ifp->if_input)(ifp, m);
if_percpuq_enqueue(ifp->if_percpuq, m);
} else {
/*
* Packet was mangled somehow. Just drop it and

View File

@ -1,4 +1,4 @@
/* $NetBSD: if_sn.c,v 1.34 2012/10/13 06:24:15 tsutsui Exp $ */
/* $NetBSD: if_sn.c,v 1.35 2016/02/09 08:32:09 ozaki-r Exp $ */
/*
* National Semiconductor DP8393X SONIC Driver
@ -16,7 +16,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: if_sn.c,v 1.34 2012/10/13 06:24:15 tsutsui Exp $");
__KERNEL_RCSID(0, "$NetBSD: if_sn.c,v 1.35 2016/02/09 08:32:09 ozaki-r Exp $");
#include "opt_inet.h"
@ -1059,7 +1059,7 @@ sonic_read(struct sn_softc *sc, void *pkt, int len)
return 0;
/* Pass the packet to any BPF listeners. */
bpf_mtap(ifp, m);
(*ifp->if_input)(ifp, m);
if_percpuq_enqueue(ifp->if_percpuq, m);
return 1;
}

View File

@ -1,4 +1,4 @@
/* $NetBSD: mb8795.c,v 1.54 2015/04/13 21:18:42 riastradh Exp $ */
/* $NetBSD: mb8795.c,v 1.55 2016/02/09 08:32:09 ozaki-r Exp $ */
/*
* Copyright (c) 1998 Darrin B. Jewell
* All rights reserved.
@ -25,7 +25,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: mb8795.c,v 1.54 2015/04/13 21:18:42 riastradh Exp $");
__KERNEL_RCSID(0, "$NetBSD: mb8795.c,v 1.55 2016/02/09 08:32:09 ozaki-r Exp $");
#include "opt_inet.h"
@ -328,7 +328,7 @@ mb8795_rint(struct mb8795_softc *sc)
ifp->if_ipackets++;
/* Pass the packet up. */
(*ifp->if_input)(ifp, m);
if_percpuq_enqueue(ifp->if_percpuq, m);
s = spldma();

View File

@ -1,4 +1,4 @@
/* $NetBSD: if_smap.c,v 1.18 2015/04/13 21:18:42 riastradh Exp $ */
/* $NetBSD: if_smap.c,v 1.19 2016/02/09 08:32:09 ozaki-r Exp $ */
/*-
* Copyright (c) 2001 The NetBSD Foundation, Inc.
@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: if_smap.c,v 1.18 2015/04/13 21:18:42 riastradh Exp $");
__KERNEL_RCSID(0, "$NetBSD: if_smap.c,v 1.19 2016/02/09 08:32:09 ozaki-r Exp $");
#include "debug_playstation2.h"
@ -410,7 +410,7 @@ smap_rxeof(void *arg)
if (m != NULL) {
if (ifp->if_bpf)
bpf_mtap(ifp->if_bpf, m);
(*ifp->if_input)(ifp, m);
if_percpuq_enqueue(ifp->if_percpuq, m);
}
}
sc->rx_done_index = i;

View File

@ -1,4 +1,4 @@
/* $NetBSD: pq3etsec.c,v 1.25 2015/02/17 01:53:21 nonaka Exp $ */
/* $NetBSD: pq3etsec.c,v 1.26 2016/02/09 08:32:09 ozaki-r Exp $ */
/*-
* Copyright (c) 2010, 2011 The NetBSD Foundation, Inc.
* All rights reserved.
@ -41,7 +41,7 @@
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: pq3etsec.c,v 1.25 2015/02/17 01:53:21 nonaka Exp $");
__KERNEL_RCSID(0, "$NetBSD: pq3etsec.c,v 1.26 2016/02/09 08:32:09 ozaki-r Exp $");
#include <sys/param.h>
#include <sys/cpu.h>
@ -1577,7 +1577,7 @@ pq3etsec_rx_input(
*/
int s = splnet();
bpf_mtap(ifp, m);
(*ifp->if_input)(ifp, m);
if_input(ifp, m);
splx(s);
}

View File

@ -1,4 +1,4 @@
/* $NetBSD: if_emac.c,v 1.43 2014/10/16 19:11:38 snj Exp $ */
/* $NetBSD: if_emac.c,v 1.44 2016/02/09 08:32:09 ozaki-r Exp $ */
/*
* Copyright 2001, 2002 Wasabi Systems, Inc.
@ -52,7 +52,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: if_emac.c,v 1.43 2014/10/16 19:11:38 snj Exp $");
__KERNEL_RCSID(0, "$NetBSD: if_emac.c,v 1.44 2016/02/09 08:32:09 ozaki-r Exp $");
#include "opt_emac.h"
@ -1676,7 +1676,7 @@ emac_rxeob_intr(void *arg)
bpf_mtap(ifp, m);
/* Pass it on. */
(*ifp->if_input)(ifp, m);
if_percpuq_enqueue(ifp->if_percpuq, m);
}
/* Update the receive pointer. */

View File

@ -1,4 +1,4 @@
/* $NetBSD: if_sq.c,v 1.44 2015/02/18 16:47:58 macallan Exp $ */
/* $NetBSD: if_sq.c,v 1.45 2016/02/09 08:32:10 ozaki-r Exp $ */
/*
* Copyright (c) 2001 Rafal K. Boni
@ -33,7 +33,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: if_sq.c,v 1.44 2015/02/18 16:47:58 macallan Exp $");
__KERNEL_RCSID(0, "$NetBSD: if_sq.c,v 1.45 2016/02/09 08:32:10 ozaki-r Exp $");
#include <sys/param.h>
@ -1022,7 +1022,7 @@ sq_rxintr(struct sq_softc *sc)
device_xname(sc->sc_dev), i, framelen));
bpf_mtap(ifp, m);
(*ifp->if_input)(ifp, m);
if_percpuq_enqueue(ifp->if_percpuq, m);
}

View File

@ -1,4 +1,4 @@
/* $NetBSD: if_mec.c,v 1.51 2015/04/13 21:22:34 riastradh Exp $ */
/* $NetBSD: if_mec.c,v 1.52 2016/02/09 08:32:10 ozaki-r Exp $ */
/*-
* Copyright (c) 2004, 2008 Izumi Tsutsui. All rights reserved.
@ -61,7 +61,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: if_mec.c,v 1.51 2015/04/13 21:22:34 riastradh Exp $");
__KERNEL_RCSID(0, "$NetBSD: if_mec.c,v 1.52 2016/02/09 08:32:10 ozaki-r Exp $");
#include "opt_ddb.h"
@ -1739,7 +1739,7 @@ mec_rxintr(struct mec_softc *sc)
bpf_mtap(ifp, m);
/* Pass it on. */
(*ifp->if_input)(ifp, m);
if_percpuq_enqueue(ifp->if_percpuq, m);
}
/* update RX pointer */

View File

@ -1,4 +1,4 @@
/* $NetBSD: if_ec.c,v 1.23 2015/05/20 09:17:17 ozaki-r Exp $ */
/* $NetBSD: if_ec.c,v 1.24 2016/02/09 08:32:10 ozaki-r Exp $ */
/*
* Copyright (c) 2001 The NetBSD Foundation, Inc.
@ -34,7 +34,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: if_ec.c,v 1.23 2015/05/20 09:17:17 ozaki-r Exp $");
__KERNEL_RCSID(0, "$NetBSD: if_ec.c,v 1.24 2016/02/09 08:32:10 ozaki-r Exp $");
#include "opt_inet.h"
#include "opt_ns.h"
@ -532,7 +532,7 @@ ec_recv(struct ec_softc *sc, int intbit)
bpf_mtap(ifp, m0);
/* Pass the packet up. */
(*ifp->if_input)(ifp, m0);
if_percpuq_enqueue(ifp->if_percpuq, m0);
} else {
/* Something went wrong. */

View File

@ -1,4 +1,4 @@
/* $NetBSD: if_ie.c,v 1.56 2015/05/20 09:17:17 ozaki-r Exp $ */
/* $NetBSD: if_ie.c,v 1.57 2016/02/09 08:32:10 ozaki-r Exp $ */
/*-
* Copyright (c) 1993, 1994, 1995 Charles M. Hannum.
@ -98,7 +98,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: if_ie.c,v 1.56 2015/05/20 09:17:17 ozaki-r Exp $");
__KERNEL_RCSID(0, "$NetBSD: if_ie.c,v 1.57 2016/02/09 08:32:10 ozaki-r Exp $");
#include "opt_inet.h"
#include "opt_ns.h"
@ -996,7 +996,7 @@ ie_readframe(struct ie_softc *sc, int num)
/*
* Finally pass this packet up to higher layers.
*/
(*sc->sc_if.if_input)(&sc->sc_if, m);
if_percpuq_enqueue((&sc->sc_if)->if_percpuq, m);
sc->sc_if.if_ipackets++;
}

View File

@ -1,4 +1,4 @@
/* $NetBSD: if_veth.c,v 1.5 2012/01/21 22:09:56 reinoud Exp $ */
/* $NetBSD: if_veth.c,v 1.6 2016/02/09 08:32:10 ozaki-r Exp $ */
/*-
* Copyright (c) 2011 Jared D. McNeill <jmcneill@invisible.ca>
@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: if_veth.c,v 1.5 2012/01/21 22:09:56 reinoud Exp $");
__KERNEL_RCSID(0, "$NetBSD: if_veth.c,v 1.6 2016/02/09 08:32:10 ozaki-r Exp $");
#include <sys/param.h>
#include <sys/proc.h>
@ -137,8 +137,9 @@ veth_attach(device_t parent, device_t self, void *opaque)
IFQ_SET_MAXLEN(&ifp->if_snd, IFQ_MAXLEN);
IFQ_SET_READY(&ifq->if_snd);
if_attach(ifp);
if_initialize(ifp);
ether_ifattach(ifp, sc->sc_eaddr);
if_register(ifp);
ifmedia_init(&sc->sc_ifmedia, 0,
veth_ifmedia_change,
@ -236,7 +237,7 @@ veth_softrx(void *priv)
bpf_mtap(ifp, m);
s = splnet();
ifp->if_input(ifp, m);
if_input(ifp, m);
splx(s);
}
}

View File

@ -1,4 +1,4 @@
/* $NetBSD: if_vmx.c,v 1.5 2014/08/14 05:42:16 hikaru Exp $ */
/* $NetBSD: if_vmx.c,v 1.6 2016/02/09 08:32:10 ozaki-r Exp $ */
/* $OpenBSD: if_vmx.c,v 1.16 2014/01/22 06:04:17 brad Exp $ */
/*
@ -18,7 +18,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: if_vmx.c,v 1.5 2014/08/14 05:42:16 hikaru Exp $");
__KERNEL_RCSID(0, "$NetBSD: if_vmx.c,v 1.6 2016/02/09 08:32:10 ozaki-r Exp $");
#include <sys/param.h>
#include <sys/bus.h>
@ -767,7 +767,7 @@ vmxnet3_rxintr(struct vmxnet3_softc *sc, struct vmxnet3_rxqueue *rq)
bpf_mtap(ifp, m);
(*ifp->if_input)(ifp, m);
if_percpuq_enqueue(ifp->if_percpuq, m);
skip_buffer:
#ifdef VMXNET3_STAT

View File

@ -1,4 +1,4 @@
/* $NetBSD: if_xennet_xenbus.c,v 1.65 2015/11/19 17:01:40 christos Exp $ */
/* $NetBSD: if_xennet_xenbus.c,v 1.66 2016/02/09 08:32:10 ozaki-r Exp $ */
/*
* Copyright (c) 2006 Manuel Bouyer.
@ -85,7 +85,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: if_xennet_xenbus.c,v 1.65 2015/11/19 17:01:40 christos Exp $");
__KERNEL_RCSID(0, "$NetBSD: if_xennet_xenbus.c,v 1.66 2016/02/09 08:32:10 ozaki-r Exp $");
#include "opt_xen.h"
#include "opt_nfs_boot.h"
@ -1107,7 +1107,7 @@ again:
ifp->if_ipackets++;
/* Pass the packet up. */
(*ifp->if_input)(ifp, m);
if_percpuq_enqueue(ifp->if_percpuq, m);
}
xen_rmb();
sc->sc_rx_ring.rsp_cons = i;

View File

@ -1,4 +1,4 @@
/* $NetBSD: xennetback_xenbus.c,v 1.54 2016/01/06 15:28:40 bouyer Exp $ */
/* $NetBSD: xennetback_xenbus.c,v 1.55 2016/02/09 08:32:10 ozaki-r Exp $ */
/*
* Copyright (c) 2006 Manuel Bouyer.
@ -26,7 +26,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: xennetback_xenbus.c,v 1.54 2016/01/06 15:28:40 bouyer Exp $");
__KERNEL_RCSID(0, "$NetBSD: xennetback_xenbus.c,v 1.55 2016/02/09 08:32:10 ozaki-r Exp $");
#include "opt_xen.h"
@ -891,7 +891,7 @@ so always copy for now.
ifp->if_ipackets++;
bpf_mtap(ifp, m);
(*ifp->if_input)(ifp, m);
if_percpuq_enqueue(ifp->if_percpuq, m);
}
xen_rmb(); /* be sure to read the request before updating pointer */
xneti->xni_txring.req_cons = req_cons;

View File

@ -1,4 +1,4 @@
/* $NetBSD: if_ni.c,v 1.41 2013/10/25 15:11:32 martin Exp $ */
/* $NetBSD: if_ni.c,v 1.42 2016/02/09 08:32:10 ozaki-r Exp $ */
/*
* Copyright (c) 2000 Ludd, University of Lule}, Sweden. All rights reserved.
*
@ -36,7 +36,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: if_ni.c,v 1.41 2013/10/25 15:11:32 martin Exp $");
__KERNEL_RCSID(0, "$NetBSD: if_ni.c,v 1.42 2016/02/09 08:32:10 ozaki-r Exp $");
#include "opt_inet.h"
@ -618,7 +618,7 @@ niintr(void *arg)
break; /* Out of mbufs */
bpf_mtap(ifp, m);
(*ifp->if_input)(ifp, m);
if_percpuq_enqueue(ifp->if_percpuq, m);
break;
case BVP_DGRAM:

View File

@ -1,4 +1,4 @@
/* $NetBSD: if_cemac.c,v 1.7 2015/08/24 18:51:37 rjs Exp $ */
/* $NetBSD: if_cemac.c,v 1.8 2016/02/09 08:32:10 ozaki-r Exp $ */
/*
* Copyright (c) 2015 Genetec Corporation. All rights reserved.
@ -40,7 +40,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: if_cemac.c,v 1.7 2015/08/24 18:51:37 rjs Exp $");
__KERNEL_RCSID(0, "$NetBSD: if_cemac.c,v 1.8 2016/02/09 08:32:10 ozaki-r Exp $");
#include <sys/types.h>
#include <sys/param.h>
@ -358,7 +358,8 @@ cemac_intr(void *arg)
sc->rxq[bi].m->m_pkthdr.csum_flags = csum;
bpf_mtap(ifp, sc->rxq[bi].m);
DPRINTFN(2,("received %u bytes packet\n", fl));
(*ifp->if_input)(ifp, sc->rxq[bi].m);
if_percpuq_enqueue(ifp->if_percpuq,
sc->rxq[bi].m);
if (mtod(m, intptr_t) & 3)
m_adj(m, mtod(m, intptr_t) & 3);
sc->rxq[bi].m = m;

View File

@ -1,4 +1,4 @@
/* $NetBSD: aic6915.c,v 1.30 2012/10/27 17:18:18 chs Exp $ */
/* $NetBSD: aic6915.c,v 1.31 2016/02/09 08:32:10 ozaki-r Exp $ */
/*-
* Copyright (c) 2001 The NetBSD Foundation, Inc.
@ -35,7 +35,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: aic6915.c,v 1.30 2012/10/27 17:18:18 chs Exp $");
__KERNEL_RCSID(0, "$NetBSD: aic6915.c,v 1.31 2016/02/09 08:32:10 ozaki-r Exp $");
#include <sys/param.h>
@ -791,7 +791,7 @@ sf_rxintr(struct sf_softc *sc)
bpf_mtap(ifp, m);
/* Pass it on. */
(*ifp->if_input)(ifp, m);
if_percpuq_enqueue(ifp->if_percpuq, m);
}
/* Update the chip's pointers. */

View File

@ -1,4 +1,4 @@
/* $NetBSD: cs89x0.c,v 1.35 2015/04/13 16:33:24 riastradh Exp $ */
/* $NetBSD: cs89x0.c,v 1.36 2016/02/09 08:32:10 ozaki-r Exp $ */
/*
* Copyright (c) 2004 Christopher Gilbert
@ -212,7 +212,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: cs89x0.c,v 1.35 2015/04/13 16:33:24 riastradh Exp $");
__KERNEL_RCSID(0, "$NetBSD: cs89x0.c,v 1.36 2016/02/09 08:32:10 ozaki-r Exp $");
#include "opt_inet.h"
@ -1665,7 +1665,7 @@ cs_ether_input(struct cs_softc *sc, struct mbuf *m)
bpf_mtap(ifp, m);
/* Pass the packet up. */
(*ifp->if_input)(ifp, m);
if_percpuq_enqueue(ifp->if_percpuq, m);
}
void

View File

@ -1,4 +1,4 @@
/* $NetBSD: dm9000.c,v 1.8 2015/06/12 17:24:02 macallan Exp $ */
/* $NetBSD: dm9000.c,v 1.9 2016/02/09 08:32:10 ozaki-r Exp $ */
/*
* Copyright (c) 2009 Paul Fleischer
@ -827,7 +827,7 @@ dme_receive(struct dme_softc *sc, struct ifnet *ifp)
if (ifp->if_bpf)
bpf_mtap(ifp, m);
ifp->if_ipackets++;
(*ifp->if_input)(ifp, m);
if_percpuq_enqueue(ifp->if_percpuq, m);
}
} else if (ready != 0x00) {

View File

@ -1,4 +1,4 @@
/* $NetBSD: dp8390.c,v 1.82 2015/04/13 16:33:24 riastradh Exp $ */
/* $NetBSD: dp8390.c,v 1.83 2016/02/09 08:32:10 ozaki-r Exp $ */
/*
* Device driver for National Semiconductor DS8390/WD83C690 based ethernet
@ -14,7 +14,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: dp8390.c,v 1.82 2015/04/13 16:33:24 riastradh Exp $");
__KERNEL_RCSID(0, "$NetBSD: dp8390.c,v 1.83 2016/02/09 08:32:10 ozaki-r Exp $");
#include "opt_ipkdb.h"
#include "opt_inet.h"
@ -947,7 +947,7 @@ dp8390_read(struct dp8390_softc *sc, int buf, u_short len)
*/
bpf_mtap(ifp, m);
(*ifp->if_input)(ifp, m);
if_percpuq_enqueue(ifp->if_percpuq, m);
}

View File

@ -1,4 +1,4 @@
/* $NetBSD: dp83932.c,v 1.36 2013/10/25 21:29:28 martin Exp $ */
/* $NetBSD: dp83932.c,v 1.37 2016/02/09 08:32:10 ozaki-r Exp $ */
/*-
* Copyright (c) 2001 The NetBSD Foundation, Inc.
@ -35,7 +35,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: dp83932.c,v 1.36 2013/10/25 21:29:28 martin Exp $");
__KERNEL_RCSID(0, "$NetBSD: dp83932.c,v 1.37 2016/02/09 08:32:10 ozaki-r Exp $");
#include <sys/param.h>
@ -843,7 +843,7 @@ sonic_rxintr(struct sonic_softc *sc)
bpf_mtap(ifp, m);
/* Pass it on. */
(*ifp->if_input)(ifp, m);
if_percpuq_enqueue(ifp->if_percpuq, m);
}
/* Update the receive pointer. */

View File

@ -1,4 +1,4 @@
/* $NetBSD: dwc_gmac.c,v 1.34 2015/08/21 20:12:29 jmcneill Exp $ */
/* $NetBSD: dwc_gmac.c,v 1.35 2016/02/09 08:32:10 ozaki-r Exp $ */
/*-
* Copyright (c) 2013, 2014 The NetBSD Foundation, Inc.
@ -41,7 +41,7 @@
#include <sys/cdefs.h>
__KERNEL_RCSID(1, "$NetBSD: dwc_gmac.c,v 1.34 2015/08/21 20:12:29 jmcneill Exp $");
__KERNEL_RCSID(1, "$NetBSD: dwc_gmac.c,v 1.35 2016/02/09 08:32:10 ozaki-r Exp $");
/* #define DWC_GMAC_DEBUG 1 */
@ -1127,7 +1127,7 @@ dwc_gmac_rx_intr(struct dwc_gmac_softc *sc)
bpf_mtap(ifp, m);
ifp->if_ipackets++;
(*ifp->if_input)(ifp, m);
if_percpuq_enqueue(ifp->if_percpuq, m);
skip:
bus_dmamap_sync(sc->sc_dmat, data->rd_map, 0,

View File

@ -1,4 +1,4 @@
/* $NetBSD: elink3.c,v 1.136 2015/04/13 16:33:24 riastradh Exp $ */
/* $NetBSD: elink3.c,v 1.137 2016/02/09 08:32:10 ozaki-r Exp $ */
/*-
* Copyright (c) 1998, 2001 The NetBSD Foundation, Inc.
@ -62,7 +62,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: elink3.c,v 1.136 2015/04/13 16:33:24 riastradh Exp $");
__KERNEL_RCSID(0, "$NetBSD: elink3.c,v 1.137 2016/02/09 08:32:10 ozaki-r Exp $");
#include "opt_inet.h"
@ -1496,7 +1496,7 @@ again:
*/
bpf_mtap(ifp, m);
(*ifp->if_input)(ifp, m);
if_percpuq_enqueue(ifp->if_percpuq, m);
/*
* In periods of high traffic we can actually receive enough

View File

@ -1,4 +1,4 @@
/* $NetBSD: elinkxl.c,v 1.117 2015/04/13 16:33:24 riastradh Exp $ */
/* $NetBSD: elinkxl.c,v 1.118 2016/02/09 08:32:10 ozaki-r Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: elinkxl.c,v 1.117 2015/04/13 16:33:24 riastradh Exp $");
__KERNEL_RCSID(0, "$NetBSD: elinkxl.c,v 1.118 2016/02/09 08:32:10 ozaki-r Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -1393,7 +1393,7 @@ ex_intr(void *arg)
M_CSUM_TCP_UDP_BAD;
}
}
(*ifp->if_input)(ifp, m);
if_percpuq_enqueue(ifp->if_percpuq, m);
}
goto rcvloop;
}

View File

@ -1,4 +1,4 @@
/* $NetBSD: gem.c,v 1.103 2015/08/30 04:17:48 dholland Exp $ */
/* $NetBSD: gem.c,v 1.104 2016/02/09 08:32:10 ozaki-r Exp $ */
/*
*
@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: gem.c,v 1.103 2015/08/30 04:17:48 dholland Exp $");
__KERNEL_RCSID(0, "$NetBSD: gem.c,v 1.104 2016/02/09 08:32:10 ozaki-r Exp $");
#include "opt_inet.h"
@ -1940,7 +1940,7 @@ swcsum:
m->m_pkthdr.csum_flags = 0;
#endif
/* Pass it on. */
(*ifp->if_input)(ifp, m);
if_percpuq_enqueue(ifp->if_percpuq, m);
}
if (progress) {

View File

@ -1,4 +1,4 @@
/* $NetBSD: hme.c,v 1.91 2015/04/13 16:33:24 riastradh Exp $ */
/* $NetBSD: hme.c,v 1.92 2016/02/09 08:32:10 ozaki-r Exp $ */
/*-
* Copyright (c) 1999 The NetBSD Foundation, Inc.
@ -34,7 +34,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: hme.c,v 1.91 2015/04/13 16:33:24 riastradh Exp $");
__KERNEL_RCSID(0, "$NetBSD: hme.c,v 1.92 2016/02/09 08:32:10 ozaki-r Exp $");
/* #define HMEDEBUG */
@ -885,7 +885,7 @@ hme_read(struct hme_softc *sc, int ix, uint32_t flags)
bpf_mtap(ifp, m);
/* Pass the packet up. */
(*ifp->if_input)(ifp, m);
if_percpuq_enqueue(ifp->if_percpuq, m);
}
void

View File

@ -1,4 +1,4 @@
/* $NetBSD: i82557.c,v 1.143 2015/04/13 16:33:24 riastradh Exp $ */
/* $NetBSD: i82557.c,v 1.144 2016/02/09 08:32:10 ozaki-r Exp $ */
/*-
* Copyright (c) 1997, 1998, 1999, 2001, 2002 The NetBSD Foundation, Inc.
@ -66,7 +66,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: i82557.c,v 1.143 2015/04/13 16:33:24 riastradh Exp $");
__KERNEL_RCSID(0, "$NetBSD: i82557.c,v 1.144 2016/02/09 08:32:10 ozaki-r Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -1458,7 +1458,7 @@ fxp_rxintr(struct fxp_softc *sc)
bpf_mtap(ifp, m);
/* Pass it on. */
(*ifp->if_input)(ifp, m);
if_percpuq_enqueue(ifp->if_percpuq, m);
}
}

View File

@ -1,4 +1,4 @@
/* $NetBSD: i82586.c,v 1.70 2011/07/02 13:13:22 mrg Exp $ */
/* $NetBSD: i82586.c,v 1.71 2016/02/09 08:32:10 ozaki-r Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@ -137,7 +137,7 @@ Mode of operation:
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: i82586.c,v 1.70 2011/07/02 13:13:22 mrg Exp $");
__KERNEL_RCSID(0, "$NetBSD: i82586.c,v 1.71 2016/02/09 08:32:10 ozaki-r Exp $");
#include <sys/param.h>
@ -1039,7 +1039,7 @@ ie_readframe(
/*
* Finally pass this packet up to higher layers.
*/
(*sc->sc_ethercom.ec_if.if_input)(&sc->sc_ethercom.ec_if, m);
if_percpuq_enqueue((&sc->sc_ethercom.ec_if)->if_percpuq, m);
sc->sc_ethercom.ec_if.if_ipackets++;
return (0);
}

View File

@ -1,4 +1,4 @@
/* $NetBSD: i82596.c,v 1.32 2015/02/21 11:39:05 martin Exp $ */
/* $NetBSD: i82596.c,v 1.33 2016/02/09 08:32:10 ozaki-r Exp $ */
/*
* Copyright (c) 2003 Jochen Kunz.
@ -43,7 +43,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: i82596.c,v 1.32 2015/02/21 11:39:05 martin Exp $");
__KERNEL_RCSID(0, "$NetBSD: i82596.c,v 1.33 2016/02/09 08:32:10 ozaki-r Exp $");
/* autoconfig and device stuff */
#include <sys/param.h>
@ -281,7 +281,7 @@ iee_intr(void *intarg)
bus_dmamap_sync(sc->sc_dmat, rx_map, 0,
rx_map->dm_mapsize, BUS_DMASYNC_PREREAD);
bpf_mtap(ifp, rx_mbuf);
(*ifp->if_input)(ifp, rx_mbuf);
if_percpuq_enqueue(ifp->if_percpuq, rx_mbuf);
ifp->if_ipackets++;
sc->sc_rx_mbuf[sc->sc_rx_done] = new_mbuf;
rbd->rbd_count = 0;

View File

@ -1,4 +1,4 @@
/* $NetBSD: lan9118.c,v 1.20 2015/04/20 12:41:38 kiyohara Exp $ */
/* $NetBSD: lan9118.c,v 1.21 2016/02/09 08:32:10 ozaki-r Exp $ */
/*
* Copyright (c) 2008 KIYOHARA Takashi
* All rights reserved.
@ -25,7 +25,7 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: lan9118.c,v 1.20 2015/04/20 12:41:38 kiyohara Exp $");
__KERNEL_RCSID(0, "$NetBSD: lan9118.c,v 1.21 2016/02/09 08:32:10 ozaki-r Exp $");
/*
* The LAN9118 Family
@ -1002,7 +1002,7 @@ dropit:
bpf_mtap(ifp, m);
/* Pass it on. */
(*ifp->if_input)(ifp, m);
if_percpuq_enqueue(ifp->if_percpuq, m);
}
}

View File

@ -1,4 +1,4 @@
/* $NetBSD: lance.c,v 1.48 2015/04/13 16:33:24 riastradh Exp $ */
/* $NetBSD: lance.c,v 1.49 2016/02/09 08:32:10 ozaki-r Exp $ */
/*-
* Copyright (c) 1997, 1998 The NetBSD Foundation, Inc.
@ -65,7 +65,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: lance.c,v 1.48 2015/04/13 16:33:24 riastradh Exp $");
__KERNEL_RCSID(0, "$NetBSD: lance.c,v 1.49 2016/02/09 08:32:10 ozaki-r Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -479,7 +479,7 @@ lance_read(struct lance_softc *sc, int boff, int len)
bpf_mtap(ifp, m);
/* Pass the packet up. */
(*ifp->if_input)(ifp, m);
if_percpuq_enqueue(ifp->if_percpuq, m);
}
#undef ifp

View File

@ -1,4 +1,4 @@
/* $NetBSD: lemac.c,v 1.43 2015/04/13 16:33:24 riastradh Exp $ */
/* $NetBSD: lemac.c,v 1.44 2016/02/09 08:32:10 ozaki-r Exp $ */
/*-
* Copyright (c) 1994, 1995, 1997 Matt Thomas <matt@3am-software.com>
@ -34,7 +34,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: lemac.c,v 1.43 2015/04/13 16:33:24 riastradh Exp $");
__KERNEL_RCSID(0, "$NetBSD: lemac.c,v 1.44 2016/02/09 08:32:10 ozaki-r Exp $");
#include "opt_inet.h"
@ -317,7 +317,7 @@ lemac_input(
}
m->m_pkthdr.len = m->m_len = length;
m->m_pkthdr.rcvif = &sc->sc_if;
(*sc->sc_if.if_input)(&sc->sc_if, m);
if_percpuq_enqueue((&sc->sc_if)->if_percpuq, m);
}
static void

View File

@ -1,4 +1,4 @@
/* $NetBSD: mb86950.c,v 1.22 2015/04/13 16:33:24 riastradh Exp $ */
/* $NetBSD: mb86950.c,v 1.23 2016/02/09 08:32:10 ozaki-r Exp $ */
/*
* All Rights Reserved, Copyright (C) Fujitsu Limited 1995
@ -67,7 +67,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: mb86950.c,v 1.22 2015/04/13 16:33:24 riastradh Exp $");
__KERNEL_RCSID(0, "$NetBSD: mb86950.c,v 1.23 2016/02/09 08:32:10 ozaki-r Exp $");
/*
* Device driver for Fujitsu mb86950 based Ethernet cards.
@ -908,7 +908,7 @@ mb86950_get_fifo(struct mb86950_softc *sc, u_int len)
*/
bpf_mtap(ifp, m);
(*ifp->if_input)(ifp, m);
if_percpuq_enqueue(ifp->if_percpuq, m);
return (0);
}

View File

@ -1,4 +1,4 @@
/* $NetBSD: mb86960.c,v 1.81 2015/04/13 16:33:24 riastradh Exp $ */
/* $NetBSD: mb86960.c,v 1.82 2016/02/09 08:32:10 ozaki-r Exp $ */
/*
* All Rights Reserved, Copyright (C) Fujitsu Limited 1995
@ -32,7 +32,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: mb86960.c,v 1.81 2015/04/13 16:33:24 riastradh Exp $");
__KERNEL_RCSID(0, "$NetBSD: mb86960.c,v 1.82 2016/02/09 08:32:10 ozaki-r Exp $");
/*
* Device driver for Fujitsu MB86960A/MB86965A based Ethernet cards.
@ -1336,7 +1336,7 @@ mb86960_get_packet(struct mb86960_softc *sc, u_int len)
*/
bpf_mtap(ifp, m);
(*ifp->if_input)(ifp, m);
if_percpuq_enqueue(ifp->if_percpuq, m);
return 1;
}

View File

@ -1,4 +1,4 @@
/* $NetBSD: mtd803.c,v 1.29 2014/08/10 16:44:35 tls Exp $ */
/* $NetBSD: mtd803.c,v 1.30 2016/02/09 08:32:10 ozaki-r Exp $ */
/*-
*
@ -44,7 +44,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: mtd803.c,v 1.29 2014/08/10 16:44:35 tls Exp $");
__KERNEL_RCSID(0, "$NetBSD: mtd803.c,v 1.30 2016/02/09 08:32:10 ozaki-r Exp $");
#include <sys/param.h>
@ -681,7 +681,7 @@ mtd_rxirq(struct mtd_softc *sc)
bpf_mtap(ifp, m);
/* Pass the packet up */
(*ifp->if_input)(ifp, m);
if_percpuq_enqueue(ifp->if_percpuq, m);
}
return 1;

View File

@ -1,4 +1,4 @@
/* $NetBSD: pdq_ifsubr.c,v 1.55 2012/10/27 17:18:22 chs Exp $ */
/* $NetBSD: pdq_ifsubr.c,v 1.56 2016/02/09 08:32:10 ozaki-r Exp $ */
/*-
* Copyright (c) 1995, 1996 Matt Thomas <matt@3am-software.com>
@ -35,7 +35,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: pdq_ifsubr.c,v 1.55 2012/10/27 17:18:22 chs Exp $");
__KERNEL_RCSID(0, "$NetBSD: pdq_ifsubr.c,v 1.56 2016/02/09 08:32:10 ozaki-r Exp $");
#ifdef __NetBSD__
#include "opt_inet.h"
@ -249,7 +249,7 @@ pdq_os_receive_pdu(
}
m->m_pkthdr.rcvif = &sc->sc_if;
(*sc->sc_if.if_input)(&sc->sc_if, m);
if_percpuq_enqueue((&sc->sc_if)->if_percpuq, m);
}
void

View File

@ -1,4 +1,4 @@
/* $NetBSD: rrunner.c,v 1.79 2015/08/30 04:27:03 dholland Exp $ */
/* $NetBSD: rrunner.c,v 1.80 2016/02/09 08:32:10 ozaki-r Exp $ */
/*
* Copyright (c) 1997, 1998 The NetBSD Foundation, Inc.
@ -35,7 +35,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: rrunner.c,v 1.79 2015/08/30 04:27:03 dholland Exp $");
__KERNEL_RCSID(0, "$NetBSD: rrunner.c,v 1.80 2016/02/09 08:32:10 ozaki-r Exp $");
#include "opt_inet.h"
@ -2377,7 +2377,7 @@ esh_read_snap_ring(struct esh_softc *sc, u_int16_t consumer, int error)
} else {
m = m_pullup(m,
sizeof(struct hippi_header));
(*ifp->if_input)(ifp, m);
if_percpuq_enqueue(ifp->if_percpuq, m);
}
} else {
ifp->if_ierrors++;

View File

@ -1,4 +1,4 @@
/* $NetBSD: rtl8169.c,v 1.145 2015/08/28 13:20:46 nonaka Exp $ */
/* $NetBSD: rtl8169.c,v 1.146 2016/02/09 08:32:10 ozaki-r Exp $ */
/*
* Copyright (c) 1997, 1998-2003
@ -33,7 +33,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: rtl8169.c,v 1.145 2015/08/28 13:20:46 nonaka Exp $");
__KERNEL_RCSID(0, "$NetBSD: rtl8169.c,v 1.146 2016/02/09 08:32:10 ozaki-r Exp $");
/* $FreeBSD: /repoman/r/ncvs/src/sys/dev/re/if_re.c,v 1.20 2004/04/11 20:34:08 ru Exp $ */
/*
@ -1358,7 +1358,7 @@ re_rxeof(struct rtk_softc *sc)
continue);
}
bpf_mtap(ifp, m);
(*ifp->if_input)(ifp, m);
if_percpuq_enqueue(ifp->if_percpuq, m);
}
sc->re_ldata.re_rx_prodidx = i;

View File

@ -1,4 +1,4 @@
/* $NetBSD: rtl81x9.c,v 1.96 2015/04/13 16:33:24 riastradh Exp $ */
/* $NetBSD: rtl81x9.c,v 1.97 2016/02/09 08:32:10 ozaki-r Exp $ */
/*
* Copyright (c) 1997, 1998
@ -86,7 +86,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: rtl81x9.c,v 1.96 2015/04/13 16:33:24 riastradh Exp $");
__KERNEL_RCSID(0, "$NetBSD: rtl81x9.c,v 1.97 2016/02/09 08:32:10 ozaki-r Exp $");
#include <sys/param.h>
@ -1077,7 +1077,7 @@ rtk_rxeof(struct rtk_softc *sc)
bpf_mtap(ifp, m);
/* pass it on. */
(*ifp->if_input)(ifp, m);
if_percpuq_enqueue(ifp->if_percpuq, m);
}
}

View File

@ -1,4 +1,4 @@
/* $NetBSD: seeq8005.c,v 1.54 2015/09/12 19:18:24 christos Exp $ */
/* $NetBSD: seeq8005.c,v 1.55 2016/02/09 08:32:10 ozaki-r Exp $ */
/*
* Copyright (c) 2000, 2001 Ben Harris
@ -61,7 +61,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: seeq8005.c,v 1.54 2015/09/12 19:18:24 christos Exp $");
__KERNEL_RCSID(0, "$NetBSD: seeq8005.c,v 1.55 2016/02/09 08:32:10 ozaki-r Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -1252,7 +1252,7 @@ ea_read(struct seeq8005_softc *sc, int addr, int len)
*/
bpf_mtap(ifp, m);
(*ifp->if_input)(ifp, m);
if_percpuq_enqueue(ifp->if_percpuq, m);
}
/*

View File

@ -1,4 +1,4 @@
/* $NetBSD: sgec.c,v 1.41 2015/08/30 04:02:06 dholland Exp $ */
/* $NetBSD: sgec.c,v 1.42 2016/02/09 08:32:10 ozaki-r Exp $ */
/*
* Copyright (c) 1999 Ludd, University of Lule}, Sweden. All rights reserved.
*
@ -45,7 +45,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: sgec.c,v 1.41 2015/08/30 04:02:06 dholland Exp $");
__KERNEL_RCSID(0, "$NetBSD: sgec.c,v 1.42 2016/02/09 08:32:10 ozaki-r Exp $");
#include "opt_inet.h"
@ -466,7 +466,7 @@ sgec_intr(struct ze_softc *sc)
m->m_pkthdr.len = m->m_len =
len - ETHER_CRC_LEN;
bpf_mtap(ifp, m);
(*ifp->if_input)(ifp, m);
if_percpuq_enqueue(ifp->if_percpuq, m);
}
}
}

View File

@ -1,4 +1,4 @@
/* $NetBSD: smc83c170.c,v 1.81 2012/07/22 14:32:58 matt Exp $ */
/* $NetBSD: smc83c170.c,v 1.82 2016/02/09 08:32:10 ozaki-r Exp $ */
/*-
* Copyright (c) 1998, 1999 The NetBSD Foundation, Inc.
@ -36,7 +36,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: smc83c170.c,v 1.81 2012/07/22 14:32:58 matt Exp $");
__KERNEL_RCSID(0, "$NetBSD: smc83c170.c,v 1.82 2016/02/09 08:32:10 ozaki-r Exp $");
#include <sys/param.h>
@ -714,7 +714,7 @@ epic_intr(void *arg)
bpf_mtap(ifp, m);
/* Pass it on. */
(*ifp->if_input)(ifp, m);
if_percpuq_enqueue(ifp->if_percpuq, m);
ifp->if_ipackets++;
}

View File

@ -1,4 +1,4 @@
/* $NetBSD: smc90cx6.c,v 1.65 2015/10/30 12:19:08 phx Exp $ */
/* $NetBSD: smc90cx6.c,v 1.66 2016/02/09 08:32:10 ozaki-r Exp $ */
/*-
* Copyright (c) 1994, 1995, 1998 The NetBSD Foundation, Inc.
@ -35,7 +35,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: smc90cx6.c,v 1.65 2015/10/30 12:19:08 phx Exp $");
__KERNEL_RCSID(0, "$NetBSD: smc90cx6.c,v 1.66 2016/02/09 08:32:10 ozaki-r Exp $");
/* #define BAHSOFTCOPY */
#define BAHRETRANSMIT /**/
@ -598,7 +598,7 @@ bah_srint(void *vsc)
bpf_mtap(ifp, head);
(*sc->sc_arccom.ac_if.if_input)(&sc->sc_arccom.ac_if, head);
if_percpuq_enqueue((&sc->sc_arccom.ac_if)->if_percpuq, head);
head = NULL;
ifp->if_ipackets++;

View File

@ -1,4 +1,4 @@
/* $NetBSD: smc91cxx.c,v 1.90 2015/08/30 04:11:40 dholland Exp $ */
/* $NetBSD: smc91cxx.c,v 1.91 2016/02/09 08:32:10 ozaki-r Exp $ */
/*-
* Copyright (c) 1997 The NetBSD Foundation, Inc.
@ -71,7 +71,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: smc91cxx.c,v 1.90 2015/08/30 04:11:40 dholland Exp $");
__KERNEL_RCSID(0, "$NetBSD: smc91cxx.c,v 1.91 2016/02/09 08:32:10 ozaki-r Exp $");
#include "opt_inet.h"
@ -1243,7 +1243,7 @@ smc91cxx_read(struct smc91cxx_softc *sc)
*/
bpf_mtap(ifp, m);
(*ifp->if_input)(ifp, m);
if_percpuq_enqueue(ifp->if_percpuq, m);
out:
/*

View File

@ -1,4 +1,4 @@
/* $NetBSD: tropic.c,v 1.44 2012/10/27 17:18:23 chs Exp $ */
/* $NetBSD: tropic.c,v 1.45 2016/02/09 08:32:10 ozaki-r Exp $ */
/*
* Ported to NetBSD by Onno van der Linden
@ -34,7 +34,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: tropic.c,v 1.44 2012/10/27 17:18:23 chs Exp $");
__KERNEL_RCSID(0, "$NetBSD: tropic.c,v 1.45 2016/02/09 08:32:10 ozaki-r Exp $");
#include "opt_inet.h"
@ -1251,7 +1251,7 @@ tr_rint(struct tr_softc *sc)
++ifp->if_ipackets;
bpf_mtap(ifp, m);
(*ifp->if_input)(ifp, m);
if_percpuq_enqueue(ifp->if_percpuq, m);
}
}

View File

@ -1,4 +1,4 @@
/* $NetBSD: tulip.c,v 1.185 2015/02/26 16:07:10 nakayama Exp $ */
/* $NetBSD: tulip.c,v 1.186 2016/02/09 08:32:10 ozaki-r Exp $ */
/*-
* Copyright (c) 1998, 1999, 2000, 2002 The NetBSD Foundation, Inc.
@ -36,7 +36,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: tulip.c,v 1.185 2015/02/26 16:07:10 nakayama Exp $");
__KERNEL_RCSID(0, "$NetBSD: tulip.c,v 1.186 2016/02/09 08:32:10 ozaki-r Exp $");
#include <sys/param.h>
@ -1397,7 +1397,7 @@ tlp_rxintr(struct tulip_softc *sc)
}
/* Pass it on. */
(*ifp->if_input)(ifp, m);
if_percpuq_enqueue(ifp->if_percpuq, m);
}
/* Update the receive pointer. */

View File

@ -1,4 +1,4 @@
/* $NetBSD: if_ndis.c,v 1.34 2012/10/27 17:18:23 chs Exp $ */
/* $NetBSD: if_ndis.c,v 1.35 2016/02/09 08:32:10 ozaki-r Exp $ */
/*-
* Copyright (c) 2003
@ -37,7 +37,7 @@
__FBSDID("$FreeBSD: src/sys/dev/if_ndis/if_ndis.c,v 1.69.2.6 2005/03/31 04:24:36 wpaul Exp $");
#endif
#ifdef __NetBSD__
__KERNEL_RCSID(0, "$NetBSD: if_ndis.c,v 1.34 2012/10/27 17:18:23 chs Exp $");
__KERNEL_RCSID(0, "$NetBSD: if_ndis.c,v 1.35 2016/02/09 08:32:10 ozaki-r Exp $");
#endif
@ -1048,7 +1048,7 @@ ndis_rxeof(ndis_handle adapter, ndis_packet **packets, uint32_t pktcnt)
bpf_mtap(ifp, m0);
(*ifp->if_input)(ifp, m0);
if_percpuq_enqueue(ifp->if_percpuq, m0);
}
}

View File

@ -1,4 +1,4 @@
/* $NetBSD: if_eg.c,v 1.88 2015/04/13 16:33:24 riastradh Exp $ */
/* $NetBSD: if_eg.c,v 1.89 2016/02/09 08:32:11 ozaki-r Exp $ */
/*
* Copyright (c) 1993 Dean Huxley <dean@fsa.ca>
@ -40,7 +40,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: if_eg.c,v 1.88 2015/04/13 16:33:24 riastradh Exp $");
__KERNEL_RCSID(0, "$NetBSD: if_eg.c,v 1.89 2016/02/09 08:32:11 ozaki-r Exp $");
#include "opt_inet.h"
@ -730,7 +730,7 @@ egread(struct eg_softc *sc, void *buf, int len)
*/
bpf_mtap(ifp, m);
(*ifp->if_input)(ifp, m);
if_percpuq_enqueue(ifp->if_percpuq, m);
}
/*

View File

@ -1,4 +1,4 @@
/* $NetBSD: if_el.c,v 1.91 2015/04/13 16:33:24 riastradh Exp $ */
/* $NetBSD: if_el.c,v 1.92 2016/02/09 08:32:11 ozaki-r Exp $ */
/*
* Copyright (c) 1994, Matthew E. Kimmel. Permission is hereby granted
@ -19,7 +19,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: if_el.c,v 1.91 2015/04/13 16:33:24 riastradh Exp $");
__KERNEL_RCSID(0, "$NetBSD: if_el.c,v 1.92 2016/02/09 08:32:11 ozaki-r Exp $");
#include "opt_inet.h"
@ -591,7 +591,7 @@ elread(struct el_softc *sc, int len)
*/
bpf_mtap(ifp, m);
(*ifp->if_input)(ifp, m);
if_percpuq_enqueue(ifp->if_percpuq, m);
}
/*

View File

@ -1,4 +1,4 @@
/* $NetBSD: if_iy.c,v 1.94 2015/04/13 16:33:24 riastradh Exp $ */
/* $NetBSD: if_iy.c,v 1.95 2016/02/09 08:32:11 ozaki-r Exp $ */
/* #define IYDEBUG */
/* #define IYMEMDEBUG */
@ -39,7 +39,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: if_iy.c,v 1.94 2015/04/13 16:33:24 riastradh Exp $");
__KERNEL_RCSID(0, "$NetBSD: if_iy.c,v 1.95 2016/02/09 08:32:11 ozaki-r Exp $");
#include "opt_inet.h"
@ -1046,7 +1046,7 @@ iyget(struct iy_softc *sc, bus_space_tag_t iot, bus_space_handle_t ioh, int rxle
bpf_mtap(ifp, top);
(*ifp->if_input)(ifp, top);
if_percpuq_enqueue(ifp->if_percpuq, top);
return;
dropped:

View File

@ -1,4 +1,4 @@
/* $NetBSD: if_gfe.c,v 1.45 2015/04/13 16:33:24 riastradh Exp $ */
/* $NetBSD: if_gfe.c,v 1.46 2016/02/09 08:32:11 ozaki-r Exp $ */
/*
* Copyright (c) 2002 Allegro Networks, Inc., Wasabi Systems, Inc.
@ -42,7 +42,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: if_gfe.c,v 1.45 2015/04/13 16:33:24 riastradh Exp $");
__KERNEL_RCSID(0, "$NetBSD: if_gfe.c,v 1.46 2016/02/09 08:32:11 ozaki-r Exp $");
#include "opt_inet.h"
@ -955,7 +955,7 @@ gfe_rx_get(struct gfe_softc *sc, enum gfe_rxprio rxprio)
(eh->ether_dhost[0] & 1) != 0 ||
memcmp(eh->ether_dhost, CLLADDR(ifp->if_sadl),
ETHER_ADDR_LEN) == 0) {
(*ifp->if_input)(ifp, m);
if_percpuq_enqueue(ifp->if_percpuq, m);
m = NULL;
GE_DPRINTF(sc, (">"));
} else {

View File

@ -1,4 +1,4 @@
/* $NetBSD: if_mvgbe.c,v 1.41 2015/04/15 10:15:40 hsuenaga Exp $ */
/* $NetBSD: if_mvgbe.c,v 1.42 2016/02/09 08:32:11 ozaki-r Exp $ */
/*
* Copyright (c) 2007, 2008, 2013 KIYOHARA Takashi
* All rights reserved.
@ -25,7 +25,7 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: if_mvgbe.c,v 1.41 2015/04/15 10:15:40 hsuenaga Exp $");
__KERNEL_RCSID(0, "$NetBSD: if_mvgbe.c,v 1.42 2016/02/09 08:32:11 ozaki-r Exp $");
#include "opt_multiprocessor.h"
@ -2085,7 +2085,7 @@ mvgbe_rxeof(struct mvgbe_softc *sc)
bpf_mtap(ifp, m);
/* pass it on. */
(*ifp->if_input)(ifp, m);
if_percpuq_enqueue(ifp->if_percpuq, m);
}
}

View File

@ -1,4 +1,4 @@
/* $NetBSD: if_mvxpe.c,v 1.2 2015/06/03 03:55:47 hsuenaga Exp $ */
/* $NetBSD: if_mvxpe.c,v 1.3 2016/02/09 08:32:11 ozaki-r Exp $ */
/*
* Copyright (c) 2015 Internet Initiative Japan Inc.
* All rights reserved.
@ -25,7 +25,7 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: if_mvxpe.c,v 1.2 2015/06/03 03:55:47 hsuenaga Exp $");
__KERNEL_RCSID(0, "$NetBSD: if_mvxpe.c,v 1.3 2016/02/09 08:32:11 ozaki-r Exp $");
#include "opt_multiprocessor.h"
@ -2448,7 +2448,7 @@ mvxpe_rx_queue(struct mvxpe_softc *sc, int q, int npkt)
mvxpe_rx_set_csumflag(ifp, r, m);
ifp->if_ipackets++;
bpf_mtap(ifp, m);
(*ifp->if_input)(ifp, m);
if_percpuq_enqueue(ifp->if_percpuq, m);
chunk = NULL; /* the BM chunk goes to networking stack now */
rx_done:
if (chunk) {

View File

@ -1,4 +1,4 @@
/* $NetBSD: ofnet.c,v 1.53 2012/10/27 17:18:28 chs Exp $ */
/* $NetBSD: ofnet.c,v 1.54 2016/02/09 08:32:11 ozaki-r Exp $ */
/*
* Copyright (C) 1995, 1996 Wolfgang Solfrank.
@ -32,7 +32,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: ofnet.c,v 1.53 2012/10/27 17:18:28 chs Exp $");
__KERNEL_RCSID(0, "$NetBSD: ofnet.c,v 1.54 2016/02/09 08:32:11 ozaki-r Exp $");
#include "ofnet.h"
#include "opt_inet.h"
@ -263,7 +263,7 @@ ofnet_read(struct ofnet_softc *of)
bpf_mtap(ifp, m);
ifp->if_ipackets++;
(*ifp->if_input)(ifp, head);
if_percpuq_enqueue(ifp->if_percpuq, head);
}
splx(s);
}

View File

@ -28,7 +28,7 @@ POSSIBILITY OF SUCH DAMAGE.
***************************************************************************/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: cxgb_sge.c,v 1.2 2011/05/18 01:01:59 dyoung Exp $");
__KERNEL_RCSID(0, "$NetBSD: cxgb_sge.c,v 1.3 2016/02/09 08:32:11 ozaki-r Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -2176,7 +2176,7 @@ t3_rx_eth(struct adapter *adap, struct sge_rspq *rq, struct mbuf *m, int ethpad)
*/
m_adj(m, sizeof(*cpl) + ethpad);
(*ifp->if_input)(ifp, m);
if_percpuq_enqueue(ifp->if_percpuq, m);
}
/**

View File

@ -1,4 +1,4 @@
/* $NetBSD: if_age.c,v 1.45 2015/04/13 16:33:25 riastradh Exp $ */
/* $NetBSD: if_age.c,v 1.46 2016/02/09 08:32:11 ozaki-r Exp $ */
/* $OpenBSD: if_age.c,v 1.1 2009/01/16 05:00:34 kevlo Exp $ */
/*-
@ -31,7 +31,7 @@
/* Driver for Attansic Technology Corp. L1 Gigabit Ethernet. */
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: if_age.c,v 1.45 2015/04/13 16:33:25 riastradh Exp $");
__KERNEL_RCSID(0, "$NetBSD: if_age.c,v 1.46 2016/02/09 08:32:11 ozaki-r Exp $");
#include "vlan.h"
@ -1505,7 +1505,7 @@ age_rxeof(struct age_softc *sc, struct rx_rdesc *rxrd)
bpf_mtap(ifp, m);
/* Pass it on. */
(*ifp->if_input)(ifp, m);
if_percpuq_enqueue(ifp->if_percpuq, m);
/* Reset mbuf chains. */
AGE_RXCHAIN_RESET(sc);

View File

@ -1,4 +1,4 @@
/* $NetBSD: if_alc.c,v 1.18 2016/01/26 16:02:50 christos Exp $ */
/* $NetBSD: if_alc.c,v 1.19 2016/02/09 08:32:11 ozaki-r Exp $ */
/* $OpenBSD: if_alc.c,v 1.1 2009/08/08 09:31:13 kevlo Exp $ */
/*-
* Copyright (c) 2009, Pyun YongHyeon <yongari@FreeBSD.org>
@ -2596,7 +2596,7 @@ alc_rxeof(struct alc_softc *sc, struct rx_rdesc *rrd)
bpf_mtap(ifp, m);
/* Pass it on. */
(*ifp->if_input)(ifp, m);
if_percpuq_enqueue(ifp->if_percpuq, m);
}
}
/* Reset mbuf chains. */

View File

@ -1,4 +1,4 @@
/* $NetBSD: if_ale.c,v 1.19 2016/01/26 16:01:45 christos Exp $ */
/* $NetBSD: if_ale.c,v 1.20 2016/02/09 08:32:11 ozaki-r Exp $ */
/*-
* Copyright (c) 2008, Pyun YongHyeon <yongari@FreeBSD.org>
@ -32,7 +32,7 @@
/* Driver for Atheros AR8121/AR8113/AR8114 PCIe Ethernet. */
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: if_ale.c,v 1.19 2016/01/26 16:01:45 christos Exp $");
__KERNEL_RCSID(0, "$NetBSD: if_ale.c,v 1.20 2016/02/09 08:32:11 ozaki-r Exp $");
#include "vlan.h"
@ -1548,7 +1548,7 @@ ale_rxeof(struct ale_softc *sc)
bpf_mtap(ifp, m);
/* Pass it to upper layer. */
(*ifp->if_input)(ifp, m);
if_percpuq_enqueue(ifp->if_percpuq, m);
ale_rx_update_page(sc, &rx_page, length, &prod);
}

View File

@ -1,4 +1,4 @@
/* $NetBSD: if_bce.c,v 1.40 2015/04/13 16:33:25 riastradh Exp $ */
/* $NetBSD: if_bce.c,v 1.41 2016/02/09 08:32:11 ozaki-r Exp $ */
/*
* Copyright (c) 2003 Clifford Wright. All rights reserved.
@ -35,7 +35,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: if_bce.c,v 1.40 2015/04/13 16:33:25 riastradh Exp $");
__KERNEL_RCSID(0, "$NetBSD: if_bce.c,v 1.41 2016/02/09 08:32:11 ozaki-r Exp $");
#include "vlan.h"
@ -815,7 +815,7 @@ bce_rxintr(struct bce_softc *sc)
bpf_mtap(ifp, m);
/* Pass it on. */
(*ifp->if_input) (ifp, m);
if_percpuq_enqueue(ifp->if_percpuq, m);
/* re-check current in case it changed */
curr = (bus_space_read_4(sc->bce_btag, sc->bce_bhandle,

View File

@ -1,4 +1,4 @@
/* $NetBSD: if_bge.c,v 1.294 2015/11/18 10:26:57 msaitoh Exp $ */
/* $NetBSD: if_bge.c,v 1.295 2016/02/09 08:32:11 ozaki-r Exp $ */
/*
* Copyright (c) 2001 Wind River Systems
@ -79,7 +79,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: if_bge.c,v 1.294 2015/11/18 10:26:57 msaitoh Exp $");
__KERNEL_RCSID(0, "$NetBSD: if_bge.c,v 1.295 2016/02/09 08:32:11 ozaki-r Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -4574,7 +4574,7 @@ bge_rxeof(struct bge_softc *sc)
VLAN_INPUT_TAG(ifp, m, cur_rx->bge_vlan_tag, continue);
}
(*ifp->if_input)(ifp, m);
if_percpuq_enqueue(ifp->if_percpuq, m);
}
sc->bge_rx_saved_considx = rx_cons;

View File

@ -1,4 +1,4 @@
/* $NetBSD: if_bnx.c,v 1.57 2014/07/09 16:30:11 msaitoh Exp $ */
/* $NetBSD: if_bnx.c,v 1.58 2016/02/09 08:32:11 ozaki-r Exp $ */
/* $OpenBSD: if_bnx.c,v 1.85 2009/11/09 14:32:41 dlg Exp $ */
/*-
@ -35,7 +35,7 @@
#if 0
__FBSDID("$FreeBSD: src/sys/dev/bce/if_bce.c,v 1.3 2006/04/13 14:12:26 ru Exp $");
#endif
__KERNEL_RCSID(0, "$NetBSD: if_bnx.c,v 1.57 2014/07/09 16:30:11 msaitoh Exp $");
__KERNEL_RCSID(0, "$NetBSD: if_bnx.c,v 1.58 2016/02/09 08:32:11 ozaki-r Exp $");
/*
* The following controllers are supported by this driver:
@ -4647,7 +4647,7 @@ bnx_rx_intr(struct bnx_softc *sc)
ifp->if_ipackets++;
DBPRINT(sc, BNX_VERBOSE_RECV,
"%s(): Passing received frame up.\n", __func__);
(*ifp->if_input)(ifp, m);
if_percpuq_enqueue(ifp->if_percpuq, m);
DBRUNIF(1, sc->rx_mbuf_alloc--);
}

View File

@ -1,4 +1,4 @@
/* $NetBSD: if_cas.c,v 1.23 2015/04/13 16:33:25 riastradh Exp $ */
/* $NetBSD: if_cas.c,v 1.24 2016/02/09 08:32:11 ozaki-r Exp $ */
/* $OpenBSD: if_cas.c,v 1.29 2009/11/29 16:19:38 kettenis Exp $ */
/*
@ -44,7 +44,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: if_cas.c,v 1.23 2015/04/13 16:33:25 riastradh Exp $");
__KERNEL_RCSID(0, "$NetBSD: if_cas.c,v 1.24 2016/02/09 08:32:11 ozaki-r Exp $");
#ifndef _MODULE
#include "opt_inet.h"
@ -1303,7 +1303,7 @@ cas_rint(struct cas_softc *sc)
ifp->if_ipackets++;
m->m_pkthdr.csum_flags = 0;
(*ifp->if_input)(ifp, m);
if_percpuq_enqueue(ifp->if_percpuq, m);
} else
ifp->if_ierrors++;
}
@ -1336,7 +1336,7 @@ cas_rint(struct cas_softc *sc)
ifp->if_ipackets++;
m->m_pkthdr.csum_flags = 0;
(*ifp->if_input)(ifp, m);
if_percpuq_enqueue(ifp->if_percpuq, m);
} else
ifp->if_ierrors++;
}

View File

@ -1,4 +1,4 @@
/* $NetBSD: if_de.c,v 1.145 2015/04/13 16:33:25 riastradh Exp $ */
/* $NetBSD: if_de.c,v 1.146 2016/02/09 08:32:11 ozaki-r Exp $ */
/*-
* Copyright (c) 1994-1997 Matt Thomas (matt@3am-software.com)
@ -37,7 +37,7 @@
* board which support 21040, 21041, or 21140 (mostly).
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: if_de.c,v 1.145 2015/04/13 16:33:25 riastradh Exp $");
__KERNEL_RCSID(0, "$NetBSD: if_de.c,v 1.146 2016/02/09 08:32:11 ozaki-r Exp $");
#define TULIP_HDR_DATA
@ -3750,7 +3750,7 @@ tulip_rx_intr(
ms->m_pkthdr.len = total_len;
ms->m_pkthdr.rcvif = ifp;
#if defined(__NetBSD__)
(*ifp->if_input)(ifp, ms);
if_percpuq_enqueue(ifp->if_percpuq, ms);
#else
m_adj(ms, sizeof(struct ether_header));
ether_input(ifp, &eh, ms);
@ -3764,7 +3764,7 @@ tulip_rx_intr(
m0->m_len = m0->m_pkthdr.len = total_len;
m0->m_pkthdr.rcvif = ifp;
#if defined(__NetBSD__)
(*ifp->if_input)(ifp, m0);
if_percpuq_enqueue(ifp->if_percpuq, m0);
#else
m_adj(m0, sizeof(struct ether_header));
ether_input(ifp, &eh, m0);

View File

@ -1,4 +1,4 @@
/* $NetBSD: if_dge.c,v 1.40 2015/04/13 16:33:25 riastradh Exp $ */
/* $NetBSD: if_dge.c,v 1.41 2016/02/09 08:32:11 ozaki-r Exp $ */
/*
* Copyright (c) 2004, SUNET, Swedish University Computer Network.
@ -80,7 +80,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: if_dge.c,v 1.40 2015/04/13 16:33:25 riastradh Exp $");
__KERNEL_RCSID(0, "$NetBSD: if_dge.c,v 1.41 2016/02/09 08:32:11 ozaki-r Exp $");
@ -1763,7 +1763,7 @@ dge_rxintr(struct dge_softc *sc)
bpf_mtap(ifp, m);
/* Pass it on. */
(*ifp->if_input)(ifp, m);
if_percpuq_enqueue(ifp->if_percpuq, m);
}
/* Update the receive pointer. */

View File

@ -1,4 +1,4 @@
/* $NetBSD: if_et.c,v 1.9 2015/06/29 12:27:41 maxv Exp $ */
/* $NetBSD: if_et.c,v 1.10 2016/02/09 08:32:11 ozaki-r Exp $ */
/* $OpenBSD: if_et.c,v 1.11 2008/06/08 06:18:07 jsg Exp $ */
/*
* Copyright (c) 2007 The DragonFly Project. All rights reserved.
@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: if_et.c,v 1.9 2015/06/29 12:27:41 maxv Exp $");
__KERNEL_RCSID(0, "$NetBSD: if_et.c,v 1.10 2016/02/09 08:32:11 ozaki-r Exp $");
#include "opt_inet.h"
#include "vlan.h"
@ -1759,7 +1759,7 @@ et_rxeof(struct et_softc *sc)
bpf_mtap(ifp, m);
ifp->if_ipackets++;
(*ifp->if_input)(ifp, m);
if_percpuq_enqueue(ifp->if_percpuq, m);
}
} else {
ifp->if_ierrors++;

View File

@ -1,4 +1,4 @@
/* $NetBSD: if_iwm.c,v 1.39 2015/11/06 14:22:17 nonaka Exp $ */
/* $NetBSD: if_iwm.c,v 1.40 2016/02/09 08:32:11 ozaki-r Exp $ */
/* OpenBSD: if_iwm.c,v 1.41 2015/05/22 06:50:54 kettenis Exp */
/*
@ -105,7 +105,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: if_iwm.c,v 1.39 2015/11/06 14:22:17 nonaka Exp $");
__KERNEL_RCSID(0, "$NetBSD: if_iwm.c,v 1.40 2016/02/09 08:32:11 ozaki-r Exp $");
#include <sys/param.h>
#include <sys/conf.h>
@ -6832,6 +6832,8 @@ iwm_attach(device_t parent, device_t self, void *aux)
ether_ifattach(ifp, ic->ic_myaddr); /* XXX */
#endif
if_register(ifp);
/* Use common softint-based if_input */
ifp->if_percpuq = if_percpuq_create(ifp);
callout_init(&sc->sc_calib_to, 0);
callout_setfunc(&sc->sc_calib_to, iwm_calib_timeout, sc);

View File

@ -1,4 +1,4 @@
/* $NetBSD: if_jme.c,v 1.28 2015/09/12 19:19:11 christos Exp $ */
/* $NetBSD: if_jme.c,v 1.29 2016/02/09 08:32:11 ozaki-r Exp $ */
/*
* Copyright (c) 2008 Manuel Bouyer. All rights reserved.
@ -58,7 +58,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: if_jme.c,v 1.28 2015/09/12 19:19:11 christos Exp $");
__KERNEL_RCSID(0, "$NetBSD: if_jme.c,v 1.29 2016/02/09 08:32:11 ozaki-r Exp $");
#include <sys/param.h>
@ -1213,7 +1213,7 @@ jme_intr_rx(jme_softc_t *sc) {
VLAN_INPUT_TAG(ifp, mhead,
(flags & JME_RD_VLAN_MASK), continue);
}
(*ifp->if_input)(ifp, mhead);
if_percpuq_enqueue(ifp->if_percpuq, mhead);
}
if (ipackets)
rnd_add_uint32(&sc->rnd_source, ipackets);

View File

@ -1,4 +1,4 @@
/* $NetBSD: if_kse.c,v 1.28 2014/06/16 16:48:16 msaitoh Exp $ */
/* $NetBSD: if_kse.c,v 1.29 2016/02/09 08:32:11 ozaki-r Exp $ */
/*-
* Copyright (c) 2006 The NetBSD Foundation, Inc.
@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: if_kse.c,v 1.28 2014/06/16 16:48:16 msaitoh Exp $");
__KERNEL_RCSID(0, "$NetBSD: if_kse.c,v 1.29 2016/02/09 08:32:11 ozaki-r Exp $");
#include <sys/param.h>
@ -1200,7 +1200,7 @@ rxintr(struct kse_softc *sc)
m->m_pkthdr.csum_flags |= M_CSUM_TCP_UDP_BAD;
}
bpf_mtap(ifp, m);
(*ifp->if_input)(ifp, m);
if_percpuq_enqueue(ifp->if_percpuq, m);
#ifdef KSEDIAGNOSTIC
if (kse_monitor_rxintr > 0) {
printf("m stat %x data %p len %d\n",

View File

@ -1,4 +1,4 @@
/* $NetBSD: if_lii.c,v 1.13 2014/03/29 19:28:24 christos Exp $ */
/* $NetBSD: if_lii.c,v 1.14 2016/02/09 08:32:11 ozaki-r Exp $ */
/*
* Copyright (c) 2008 The NetBSD Foundation.
@ -31,7 +31,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: if_lii.c,v 1.13 2014/03/29 19:28:24 christos Exp $");
__KERNEL_RCSID(0, "$NetBSD: if_lii.c,v 1.14 2016/02/09 08:32:11 ozaki-r Exp $");
#include <sys/param.h>
@ -1001,7 +1001,7 @@ lii_rxintr(struct lii_softc *sc)
bpf_mtap(ifp, m);
(*ifp->if_input)(ifp, m);
if_percpuq_enqueue(ifp->if_percpuq, m);
}
AT_WRITE_4(sc, ATL2_MB_RXD_RD_IDX, sc->sc_rxcur);

View File

@ -1,4 +1,4 @@
/* $NetBSD: if_lmc.c,v 1.56 2014/11/28 08:03:46 ozaki-r Exp $ */
/* $NetBSD: if_lmc.c,v 1.57 2016/02/09 08:32:11 ozaki-r Exp $ */
/*-
* Copyright (c) 2002-2006 David Boggs. <boggs@boggs.palo-alto.ca.us>
@ -74,7 +74,7 @@
*/
# include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: if_lmc.c,v 1.56 2014/11/28 08:03:46 ozaki-r Exp $");
__KERNEL_RCSID(0, "$NetBSD: if_lmc.c,v 1.57 2016/02/09 08:32:11 ozaki-r Exp $");
# include <sys/param.h> /* OS version */
# include "opt_inet.h" /* INET6, INET */
# include "opt_altq_enabled.h" /* ALTQ */
@ -3510,7 +3510,7 @@ ifnet_setup(struct ifnet *ifp)
ifp->if_flags = IFF_POINTOPOINT;
ifp->if_flags |= IFF_SIMPLEX;
ifp->if_flags |= IFF_NOARP;
ifp->if_input = ifnet_input;
ifp->_if_input = ifnet_input;
ifp->if_output = ifnet_output;
ifp->if_start = ifnet_start;
ifp->if_ioctl = ifnet_ioctl;

View File

@ -1,4 +1,4 @@
/* $NetBSD: if_msk.c,v 1.48 2015/04/13 16:33:25 riastradh Exp $ */
/* $NetBSD: if_msk.c,v 1.49 2016/02/09 08:32:11 ozaki-r Exp $ */
/* $OpenBSD: if_msk.c,v 1.42 2007/01/17 02:43:02 krw Exp $ */
/*
@ -52,7 +52,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: if_msk.c,v 1.48 2015/04/13 16:33:25 riastradh Exp $");
__KERNEL_RCSID(0, "$NetBSD: if_msk.c,v 1.49 2016/02/09 08:32:11 ozaki-r Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -1751,7 +1751,7 @@ msk_rxeof(struct sk_if_softc *sc_if, u_int16_t len, u_int32_t rxstat)
bpf_mtap(ifp, m);
/* pass it on. */
(*ifp->if_input)(ifp, m);
if_percpuq_enqueue(ifp->if_percpuq, m);
}
void

View File

@ -1,4 +1,4 @@
/* $NetBSD: if_nfe.c,v 1.59 2014/03/29 19:28:25 christos Exp $ */
/* $NetBSD: if_nfe.c,v 1.60 2016/02/09 08:32:11 ozaki-r Exp $ */
/* $OpenBSD: if_nfe.c,v 1.77 2008/02/05 16:52:50 brad Exp $ */
/*-
@ -21,7 +21,7 @@
/* Driver for NVIDIA nForce MCP Fast Ethernet and Gigabit Ethernet */
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: if_nfe.c,v 1.59 2014/03/29 19:28:25 christos Exp $");
__KERNEL_RCSID(0, "$NetBSD: if_nfe.c,v 1.60 2016/02/09 08:32:11 ozaki-r Exp $");
#include "opt_inet.h"
#include "vlan.h"
@ -946,7 +946,7 @@ mbufcopied:
}
bpf_mtap(ifp, m);
ifp->if_ipackets++;
(*ifp->if_input)(ifp, m);
if_percpuq_enqueue(ifp->if_percpuq, m);
skip1:
/* update mapping address in h/w descriptor */

View File

@ -1,4 +1,4 @@
/* $NetBSD: if_pcn.c,v 1.60 2015/04/27 17:40:13 christos Exp $ */
/* $NetBSD: if_pcn.c,v 1.61 2016/02/09 08:32:11 ozaki-r Exp $ */
/*
* Copyright (c) 2001 Wasabi Systems, Inc.
@ -65,7 +65,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: if_pcn.c,v 1.60 2015/04/27 17:40:13 christos Exp $");
__KERNEL_RCSID(0, "$NetBSD: if_pcn.c,v 1.61 2016/02/09 08:32:11 ozaki-r Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -1551,7 +1551,7 @@ pcn_rxintr(struct pcn_softc *sc)
bpf_mtap(ifp, m);
/* Pass it on. */
(*ifp->if_input)(ifp, m);
if_percpuq_enqueue(ifp->if_percpuq, m);
ifp->if_ipackets++;
}

View File

@ -1,4 +1,4 @@
/* $NetBSD: if_rtwn.c,v 1.4 2016/02/06 01:59:55 riastradh Exp $ */
/* $NetBSD: if_rtwn.c,v 1.5 2016/02/09 08:32:11 ozaki-r Exp $ */
/* $OpenBSD: if_rtwn.c,v 1.5 2015/06/14 08:02:47 stsp Exp $ */
#define IEEE80211_NO_HT
/*-
@ -23,7 +23,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: if_rtwn.c,v 1.4 2016/02/06 01:59:55 riastradh Exp $");
__KERNEL_RCSID(0, "$NetBSD: if_rtwn.c,v 1.5 2016/02/09 08:32:11 ozaki-r Exp $");
#include <sys/param.h>
#include <sys/sockio.h>
@ -358,6 +358,8 @@ rtwn_attach(device_t parent, device_t self, void *aux)
if_initialize(ifp);
ieee80211_ifattach(ic);
if_register(ifp);
/* Use common softint-based if_input */
ifp->if_percpuq = if_percpuq_create(ifp);
/* override default methods */
ic->ic_newassoc = rtwn_newassoc;

Some files were not shown because too many files have changed in this diff Show More