diff options
| author | ozaki-r <ozaki-r@NetBSD.org> | 2017-05-23 02:19:14 +0000 |
|---|---|---|
| committer | ozaki-r <ozaki-r@NetBSD.org> | 2017-05-23 02:19:14 +0000 |
| commit | a02ae9848230552faeddec1e34c1d430eee4e8f9 (patch) | |
| tree | beade18a4af5dc69743cc15286e4933138cf8eb5 /sys | |
| parent | fd9f6585fcf858ef3eadeac3d78559d68515bba6 (diff) | |
Apply deferred if_start to more drivers
And annotate some XXX_start as it runs in softint to clarify that
it doesn't need deferred if_start.
Diffstat (limited to 'sys')
| -rw-r--r-- | sys/dev/cadence/if_cemac.c | 9 | ||||
| -rw-r--r-- | sys/dev/ic/aic6915.c | 7 | ||||
| -rw-r--r-- | sys/dev/ic/am7990.c | 7 | ||||
| -rw-r--r-- | sys/dev/ic/am79900.c | 7 | ||||
| -rw-r--r-- | sys/dev/ic/an.c | 6 | ||||
| -rw-r--r-- | sys/dev/ic/arn5008.c | 6 | ||||
| -rw-r--r-- | sys/dev/ic/arn9003.c | 6 | ||||
| -rw-r--r-- | sys/dev/ic/awi.c | 6 | ||||
| -rw-r--r-- | sys/dev/ic/dp8390.c | 7 | ||||
| -rw-r--r-- | sys/dev/ic/dp83932.c | 7 | ||||
| -rw-r--r-- | sys/dev/ic/hme.c | 7 | ||||
| -rw-r--r-- | sys/dev/ic/lemac.c | 7 | ||||
| -rw-r--r-- | sys/dev/ic/mb86960.c | 7 | ||||
| -rw-r--r-- | sys/dev/ic/rt2560.c | 8 | ||||
| -rw-r--r-- | sys/dev/ic/rt2661.c | 6 | ||||
| -rw-r--r-- | sys/dev/ic/rt2860.c | 6 | ||||
| -rw-r--r-- | sys/dev/ic/rtw.c | 8 | ||||
| -rw-r--r-- | sys/dev/ic/smc90cx6.c | 7 | ||||
| -rw-r--r-- | sys/dev/ic/smc91cxx.c | 7 | ||||
| -rw-r--r-- | sys/dev/ic/tulip.c | 7 | ||||
| -rw-r--r-- | sys/dev/pci/if_ale.c | 8 | ||||
| -rw-r--r-- | sys/dev/pci/if_ipw.c | 6 | ||||
| -rw-r--r-- | sys/dev/pci/if_iwi.c | 6 | ||||
| -rw-r--r-- | sys/dev/pci/if_tl.c | 11 | ||||
| -rw-r--r-- | sys/dev/pci/if_vte.c | 8 | ||||
| -rw-r--r-- | sys/dev/pci/if_wpi.c | 6 |
26 files changed, 97 insertions, 86 deletions
diff --git a/sys/dev/cadence/if_cemac.c b/sys/dev/cadence/if_cemac.c index 21fb53b9726..3108577a84f 100644 --- a/sys/dev/cadence/if_cemac.c +++ b/sys/dev/cadence/if_cemac.c @@ -1,4 +1,4 @@ -/* $NetBSD: if_cemac.c,v 1.10 2016/12/15 09:28:04 ozaki-r Exp $ */ +/* $NetBSD: if_cemac.c,v 1.11 2017/05/23 02:19:14 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.10 2016/12/15 09:28:04 ozaki-r Exp $"); +__KERNEL_RCSID(0, "$NetBSD: if_cemac.c,v 1.11 2017/05/23 02:19:14 ozaki-r Exp $"); #include <sys/types.h> #include <sys/param.h> @@ -384,8 +384,8 @@ cemac_intr(void *arg) } } - if (cemac_gctx(sc) > 0 && IFQ_IS_EMPTY(&ifp->if_snd) == 0) - cemac_ifstart(ifp); + if (cemac_gctx(sc) > 0) + if_schedule_deferred_start(ifp); #if 0 // reloop irq = CEMAC_READ(IntStsC); if ((irq & (IntSts_RxSQ|IntSts_ECI)) != 0) @@ -621,6 +621,7 @@ cemac_init(struct cemac_softc *sc) ifp->if_softc = sc; IFQ_SET_READY(&ifp->if_snd); if_attach(ifp); + if_deferred_start_init(ifp, NULL); ether_ifattach(ifp, (sc)->sc_enaddr); } diff --git a/sys/dev/ic/aic6915.c b/sys/dev/ic/aic6915.c index af71846c818..44616f72091 100644 --- a/sys/dev/ic/aic6915.c +++ b/sys/dev/ic/aic6915.c @@ -1,4 +1,4 @@ -/* $NetBSD: aic6915.c,v 1.34 2016/12/15 09:28:05 ozaki-r Exp $ */ +/* $NetBSD: aic6915.c,v 1.35 2017/05/23 02:19:14 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.34 2016/12/15 09:28:05 ozaki-r Exp $"); +__KERNEL_RCSID(0, "$NetBSD: aic6915.c,v 1.35 2017/05/23 02:19:14 ozaki-r Exp $"); #include <sys/param.h> @@ -283,6 +283,7 @@ sf_attach(struct sf_softc *sc) * Attach the interface. */ if_attach(ifp); + if_deferred_start_init(ifp, NULL); ether_ifattach(ifp, enaddr); /* @@ -605,7 +606,7 @@ sf_intr(void *arg) sf_init(&sc->sc_ethercom.ec_if); /* Try and get more packets going. */ - sf_start(&sc->sc_ethercom.ec_if); + if_schedule_deferred_start(&sc->sc_ethercom.ec_if); } return (handled); diff --git a/sys/dev/ic/am7990.c b/sys/dev/ic/am7990.c index a35a36794b2..5c3afcab505 100644 --- a/sys/dev/ic/am7990.c +++ b/sys/dev/ic/am7990.c @@ -1,4 +1,4 @@ -/* $NetBSD: am7990.c,v 1.75 2015/04/13 16:33:24 riastradh Exp $ */ +/* $NetBSD: am7990.c,v 1.76 2017/05/23 02:19:14 ozaki-r Exp $ */ /*- * Copyright (c) 1997, 1998 The NetBSD Foundation, Inc. @@ -65,7 +65,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: am7990.c,v 1.75 2015/04/13 16:33:24 riastradh Exp $"); +__KERNEL_RCSID(0, "$NetBSD: am7990.c,v 1.76 2017/05/23 02:19:14 ozaki-r Exp $"); #include <sys/param.h> #include <sys/systm.h> @@ -114,6 +114,7 @@ am7990_config(struct am7990_softc *sc) sc->lsc.sc_start = am7990_start; lance_config(&sc->lsc); + if_deferred_start_init(ifp, NULL); mem = 0; sc->lsc.sc_initaddr = mem; @@ -356,7 +357,7 @@ am7990_tint(struct lance_softc *sc) sc->sc_first_td = bix; - am7990_start(ifp); + if_schedule_deferred_start(ifp); if (sc->sc_no_td == 0) ifp->if_timer = 0; diff --git a/sys/dev/ic/am79900.c b/sys/dev/ic/am79900.c index 01df313a148..a3f4d04d352 100644 --- a/sys/dev/ic/am79900.c +++ b/sys/dev/ic/am79900.c @@ -1,4 +1,4 @@ -/* $NetBSD: am79900.c,v 1.24 2015/04/13 16:33:24 riastradh Exp $ */ +/* $NetBSD: am79900.c,v 1.25 2017/05/23 02:19:14 ozaki-r Exp $ */ /*- * Copyright (c) 1997 The NetBSD Foundation, Inc. @@ -103,7 +103,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: am79900.c,v 1.24 2015/04/13 16:33:24 riastradh Exp $"); +__KERNEL_RCSID(0, "$NetBSD: am79900.c,v 1.25 2017/05/23 02:19:14 ozaki-r Exp $"); #include <sys/param.h> #include <sys/systm.h> @@ -152,6 +152,7 @@ am79900_config(struct am79900_softc *sc) sc->lsc.sc_start = am79900_start; lance_config(&sc->lsc); + if_deferred_start_init(ifp, NULL); mem = 0; sc->lsc.sc_initaddr = mem; @@ -387,7 +388,7 @@ am79900_tint(struct lance_softc *sc) sc->sc_first_td = bix; - am79900_start(ifp); + if_schedule_deferred_start(ifp); if (sc->sc_no_td == 0) ifp->if_timer = 0; diff --git a/sys/dev/ic/an.c b/sys/dev/ic/an.c index 5a15d7a9d14..d903b8451f9 100644 --- a/sys/dev/ic/an.c +++ b/sys/dev/ic/an.c @@ -1,4 +1,4 @@ -/* $NetBSD: an.c,v 1.64 2017/02/02 10:05:35 nonaka Exp $ */ +/* $NetBSD: an.c,v 1.65 2017/05/23 02:19:14 ozaki-r Exp $ */ /* * Copyright (c) 1997, 1998, 1999 * Bill Paul <wpaul@ctr.columbia.edu>. All rights reserved. @@ -77,7 +77,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: an.c,v 1.64 2017/02/02 10:05:35 nonaka Exp $"); +__KERNEL_RCSID(0, "$NetBSD: an.c,v 1.65 2017/05/23 02:19:14 ozaki-r Exp $"); #include <sys/param.h> @@ -509,7 +509,7 @@ an_softintr(void *arg) sc->sc_ic.ic_state == IEEE80211_S_RUN && !IFQ_IS_EMPTY(&ifp->if_snd)) { s = splnet(); - an_start(ifp); + an_start(ifp); /* in softint */ splx(s); } } diff --git a/sys/dev/ic/arn5008.c b/sys/dev/ic/arn5008.c index 0f593956df1..1d7cf669b9f 100644 --- a/sys/dev/ic/arn5008.c +++ b/sys/dev/ic/arn5008.c @@ -1,4 +1,4 @@ -/* $NetBSD: arn5008.c,v 1.12 2017/02/02 10:05:35 nonaka Exp $ */ +/* $NetBSD: arn5008.c,v 1.13 2017/05/23 02:19:14 ozaki-r Exp $ */ /* $OpenBSD: ar5008.c,v 1.21 2012/08/25 12:14:31 kettenis Exp $ */ /*- @@ -24,7 +24,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: arn5008.c,v 1.12 2017/02/02 10:05:35 nonaka Exp $"); +__KERNEL_RCSID(0, "$NetBSD: arn5008.c,v 1.13 2017/05/23 02:19:14 ozaki-r Exp $"); #include <sys/param.h> #include <sys/sockio.h> @@ -1056,7 +1056,7 @@ ar5008_tx_intr(struct athn_softc *sc) } if (!SIMPLEQ_EMPTY(&sc->sc_txbufs)) { ifp->if_flags &= ~IFF_OACTIVE; - ifp->if_start(ifp); + ifp->if_start(ifp); /* in softint */ } splx(s); diff --git a/sys/dev/ic/arn9003.c b/sys/dev/ic/arn9003.c index dfa73b1a944..b925cbff51b 100644 --- a/sys/dev/ic/arn9003.c +++ b/sys/dev/ic/arn9003.c @@ -1,4 +1,4 @@ -/* $NetBSD: arn9003.c,v 1.10 2017/02/02 10:05:35 nonaka Exp $ */ +/* $NetBSD: arn9003.c,v 1.11 2017/05/23 02:19:14 ozaki-r Exp $ */ /* $OpenBSD: ar9003.c,v 1.25 2012/10/20 09:53:32 stsp Exp $ */ /*- @@ -24,7 +24,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: arn9003.c,v 1.10 2017/02/02 10:05:35 nonaka Exp $"); +__KERNEL_RCSID(0, "$NetBSD: arn9003.c,v 1.11 2017/05/23 02:19:14 ozaki-r Exp $"); #include <sys/param.h> #include <sys/sockio.h> @@ -1204,7 +1204,7 @@ ar9003_tx_intr(struct athn_softc *sc) if (!SIMPLEQ_EMPTY(&sc->sc_txbufs)) { ifp->if_flags &= ~IFF_OACTIVE; - ifp->if_start(ifp); + ifp->if_start(ifp); /* in softint */ } splx(s); diff --git a/sys/dev/ic/awi.c b/sys/dev/ic/awi.c index c51071ce3a6..9c8e9e981ef 100644 --- a/sys/dev/ic/awi.c +++ b/sys/dev/ic/awi.c @@ -1,4 +1,4 @@ -/* $NetBSD: awi.c,v 1.91 2017/02/02 10:05:35 nonaka Exp $ */ +/* $NetBSD: awi.c,v 1.92 2017/05/23 02:19:14 ozaki-r Exp $ */ /*- * Copyright (c) 1999,2000,2001 The NetBSD Foundation, Inc. @@ -78,7 +78,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: awi.c,v 1.91 2017/02/02 10:05:35 nonaka Exp $"); +__KERNEL_RCSID(0, "$NetBSD: awi.c,v 1.92 2017/05/23 02:19:14 ozaki-r Exp $"); #include "opt_inet.h" @@ -1173,7 +1173,7 @@ awi_tx_int(struct awi_softc *sc) sc->sc_txdone, sc->sc_txnext, sc->sc_txbase, sc->sc_txend)); sc->sc_tx_timer = 0; ifp->if_flags &= ~IFF_OACTIVE; - awi_start(ifp); + awi_start(ifp); /* in softint */ } static struct mbuf * diff --git a/sys/dev/ic/dp8390.c b/sys/dev/ic/dp8390.c index b3402a93e8e..98057f23394 100644 --- a/sys/dev/ic/dp8390.c +++ b/sys/dev/ic/dp8390.c @@ -1,4 +1,4 @@ -/* $NetBSD: dp8390.c,v 1.86 2016/12/15 09:28:05 ozaki-r Exp $ */ +/* $NetBSD: dp8390.c,v 1.87 2017/05/23 02:19:14 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.86 2016/12/15 09:28:05 ozaki-r Exp $"); +__KERNEL_RCSID(0, "$NetBSD: dp8390.c,v 1.87 2017/05/23 02:19:14 ozaki-r Exp $"); #include "opt_ipkdb.h" #include "opt_inet.h" @@ -151,6 +151,7 @@ dp8390_config(struct dp8390_softc *sc) /* Attach the interface. */ if_attach(ifp); + if_deferred_start_init(ifp, NULL); ether_ifattach(ifp, sc->sc_enaddr); rnd_attach_source(&sc->rnd_source, device_xname(sc->sc_dev), @@ -786,7 +787,7 @@ dp8390_intr(void *arg) * to start output on the interface. This is done after * handling the receiver to give the receiver priority. */ - dp8390_start(ifp); + if_schedule_deferred_start(ifp); /* * Return NIC CR to standard state: page 0, remote DMA diff --git a/sys/dev/ic/dp83932.c b/sys/dev/ic/dp83932.c index 4da0726b50a..5419e13a0b1 100644 --- a/sys/dev/ic/dp83932.c +++ b/sys/dev/ic/dp83932.c @@ -1,4 +1,4 @@ -/* $NetBSD: dp83932.c,v 1.39 2016/12/15 09:28:05 ozaki-r Exp $ */ +/* $NetBSD: dp83932.c,v 1.40 2017/05/23 02:19:14 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.39 2016/12/15 09:28:05 ozaki-r Exp $"); +__KERNEL_RCSID(0, "$NetBSD: dp83932.c,v 1.40 2017/05/23 02:19:14 ozaki-r Exp $"); #include <sys/param.h> @@ -212,6 +212,7 @@ sonic_attach(struct sonic_softc *sc, const uint8_t *enaddr) * Attach the interface. */ if_attach(ifp); + if_deferred_start_init(ifp, NULL); ether_ifattach(ifp, enaddr); /* @@ -612,7 +613,7 @@ sonic_intr(void *arg) if (handled) { if (wantinit) (void)sonic_init(ifp); - sonic_start(ifp); + if_schedule_deferred_start(ifp); } return handled; diff --git a/sys/dev/ic/hme.c b/sys/dev/ic/hme.c index cd395b030d2..108530db7ab 100644 --- a/sys/dev/ic/hme.c +++ b/sys/dev/ic/hme.c @@ -1,4 +1,4 @@ -/* $NetBSD: hme.c,v 1.95 2016/12/15 09:28:05 ozaki-r Exp $ */ +/* $NetBSD: hme.c,v 1.96 2017/05/23 02:19:14 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.95 2016/12/15 09:28:05 ozaki-r Exp $"); +__KERNEL_RCSID(0, "$NetBSD: hme.c,v 1.96 2017/05/23 02:19:14 ozaki-r Exp $"); /* #define HMEDEBUG */ @@ -306,6 +306,7 @@ hme_config(struct hme_softc *sc) /* Attach the interface. */ if_attach(ifp); + if_deferred_start_init(ifp, NULL); ether_ifattach(ifp, sc->sc_enaddr); if (pmf_device_register1(sc->sc_dev, NULL, NULL, hme_shutdown)) @@ -1021,7 +1022,7 @@ hme_tint(struct hme_softc *sc) /* Update ring */ sc->sc_rb.rb_tdtail = ri; - hme_start(ifp); + if_schedule_deferred_start(ifp); if (sc->sc_rb.rb_td_nbusy == 0) ifp->if_timer = 0; diff --git a/sys/dev/ic/lemac.c b/sys/dev/ic/lemac.c index 43c0f4826d2..678205cffa5 100644 --- a/sys/dev/ic/lemac.c +++ b/sys/dev/ic/lemac.c @@ -1,4 +1,4 @@ -/* $NetBSD: lemac.c,v 1.47 2016/12/15 09:28:05 ozaki-r Exp $ */ +/* $NetBSD: lemac.c,v 1.48 2017/05/23 02:19:14 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.47 2016/12/15 09:28:05 ozaki-r Exp $"); +__KERNEL_RCSID(0, "$NetBSD: lemac.c,v 1.48 2017/05/23 02:19:14 ozaki-r Exp $"); #include "opt_inet.h" @@ -171,7 +171,7 @@ lemac_tne_intr( } } sc->sc_if.if_flags &= ~IFF_OACTIVE; - lemac_ifstart(&sc->sc_if); + if_schedule_deferred_start(&sc->sc_if); } static void @@ -997,6 +997,7 @@ lemac_ifattach( IFQ_SET_READY(&ifp->if_snd); if_attach(ifp); + if_deferred_start_init(ifp, NULL); ether_ifattach(ifp, sc->sc_enaddr); rnd_attach_source(&sc->rnd_source, device_xname(sc->sc_dev), diff --git a/sys/dev/ic/mb86960.c b/sys/dev/ic/mb86960.c index 900f0f7f441..0d02709f23b 100644 --- a/sys/dev/ic/mb86960.c +++ b/sys/dev/ic/mb86960.c @@ -1,4 +1,4 @@ -/* $NetBSD: mb86960.c,v 1.84 2016/12/15 09:28:05 ozaki-r Exp $ */ +/* $NetBSD: mb86960.c,v 1.85 2017/05/23 02:19:14 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.84 2016/12/15 09:28:05 ozaki-r Exp $"); +__KERNEL_RCSID(0, "$NetBSD: mb86960.c,v 1.85 2017/05/23 02:19:14 ozaki-r Exp $"); /* * Device driver for Fujitsu MB86960A/MB86965A based Ethernet cards. @@ -247,6 +247,7 @@ mb86960_config(struct mb86960_softc *sc, int *media, int nmedia, int defmedia) /* Attach the interface. */ if_attach(ifp); + if_deferred_start_init(ifp, NULL); ether_ifattach(ifp, sc->sc_enaddr); rnd_attach_source(&sc->rnd_source, device_xname(sc->sc_dev), @@ -1140,7 +1141,7 @@ mb86960_intr(void *arg) * receive operation priority. */ if ((ifp->if_flags & IFF_OACTIVE) == 0) - mb86960_start(ifp); + if_schedule_deferred_start(ifp); if (rstat != 0 || tstat != 0) rnd_add_uint32(&sc->rnd_source, rstat + tstat); diff --git a/sys/dev/ic/rt2560.c b/sys/dev/ic/rt2560.c index fc3e96817f6..279556877d3 100644 --- a/sys/dev/ic/rt2560.c +++ b/sys/dev/ic/rt2560.c @@ -1,4 +1,4 @@ -/* $NetBSD: rt2560.c,v 1.29 2017/02/02 10:05:35 nonaka Exp $ */ +/* $NetBSD: rt2560.c,v 1.30 2017/05/23 02:19:14 ozaki-r Exp $ */ /* $OpenBSD: rt2560.c,v 1.15 2006/04/20 20:31:12 miod Exp $ */ /* $FreeBSD: rt2560.c,v 1.3 2006/03/21 21:15:43 damien Exp $*/ @@ -24,7 +24,7 @@ * http://www.ralinktech.com/ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: rt2560.c,v 1.29 2017/02/02 10:05:35 nonaka Exp $"); +__KERNEL_RCSID(0, "$NetBSD: rt2560.c,v 1.30 2017/05/23 02:19:14 ozaki-r Exp $"); #include <sys/param.h> @@ -1167,7 +1167,7 @@ rt2560_tx_intr(struct rt2560_softc *sc) sc->sc_tx_timer = 0; ifp->if_flags &= ~IFF_OACTIVE; - rt2560_start(ifp); + rt2560_start(ifp); /* in softint */ splx(s); } @@ -1240,7 +1240,7 @@ rt2560_prio_intr(struct rt2560_softc *sc) sc->sc_tx_timer = 0; ifp->if_flags &= ~IFF_OACTIVE; - rt2560_start(ifp); + rt2560_start(ifp); /* in softint */ splx(s); } diff --git a/sys/dev/ic/rt2661.c b/sys/dev/ic/rt2661.c index 1e04d32c7c5..ffc65d2f10f 100644 --- a/sys/dev/ic/rt2661.c +++ b/sys/dev/ic/rt2661.c @@ -1,4 +1,4 @@ -/* $NetBSD: rt2661.c,v 1.34 2017/02/02 10:05:35 nonaka Exp $ */ +/* $NetBSD: rt2661.c,v 1.35 2017/05/23 02:19:14 ozaki-r Exp $ */ /* $OpenBSD: rt2661.c,v 1.17 2006/05/01 08:41:11 damien Exp $ */ /* $FreeBSD: rt2560.c,v 1.5 2006/06/02 19:59:31 csjp Exp $ */ @@ -25,7 +25,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: rt2661.c,v 1.34 2017/02/02 10:05:35 nonaka Exp $"); +__KERNEL_RCSID(0, "$NetBSD: rt2661.c,v 1.35 2017/05/23 02:19:14 ozaki-r Exp $"); #include <sys/param.h> @@ -993,7 +993,7 @@ rt2661_tx_intr(struct rt2661_softc *sc) sc->sc_tx_timer = 0; ifp->if_flags &= ~IFF_OACTIVE; - rt2661_start(ifp); + rt2661_start(ifp); /* in softint */ splx(s); } diff --git a/sys/dev/ic/rt2860.c b/sys/dev/ic/rt2860.c index 05021b277d4..8cda820de94 100644 --- a/sys/dev/ic/rt2860.c +++ b/sys/dev/ic/rt2860.c @@ -1,4 +1,4 @@ -/* $NetBSD: rt2860.c,v 1.25 2017/02/02 10:05:35 nonaka Exp $ */ +/* $NetBSD: rt2860.c,v 1.26 2017/05/23 02:19:14 ozaki-r Exp $ */ /* $OpenBSD: rt2860.c,v 1.90 2016/04/13 10:49:26 mpi Exp $ */ /* $FreeBSD: head/sys/dev/ral/rt2860.c 306591 2016-10-02 20:35:55Z avos $ */ @@ -25,7 +25,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: rt2860.c,v 1.25 2017/02/02 10:05:35 nonaka Exp $"); +__KERNEL_RCSID(0, "$NetBSD: rt2860.c,v 1.26 2017/05/23 02:19:14 ozaki-r Exp $"); #include <sys/param.h> #include <sys/sockio.h> @@ -1282,7 +1282,7 @@ rt2860_tx_intr(struct rt2860_softc *sc, int qid) if (ring->queued <= RT2860_TX_RING_ONEMORE) sc->qfullmsk &= ~(1 << qid); ifp->if_flags &= ~IFF_OACTIVE; - rt2860_start(ifp); + rt2860_start(ifp); /* in softint */ splx(s); } diff --git a/sys/dev/ic/rtw.c b/sys/dev/ic/rtw.c index 8ccb4185335..83854e19c50 100644 --- a/sys/dev/ic/rtw.c +++ b/sys/dev/ic/rtw.c @@ -1,4 +1,4 @@ -/* $NetBSD: rtw.c,v 1.125 2017/02/02 10:05:35 nonaka Exp $ */ +/* $NetBSD: rtw.c,v 1.126 2017/05/23 02:19:14 ozaki-r Exp $ */ /*- * Copyright (c) 2004, 2005, 2006, 2007 David Young. All rights * reserved. @@ -32,7 +32,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: rtw.c,v 1.125 2017/02/02 10:05:35 nonaka Exp $"); +__KERNEL_RCSID(0, "$NetBSD: rtw.c,v 1.126 2017/05/23 02:19:14 ozaki-r Exp $"); #include <sys/param.h> @@ -1858,7 +1858,7 @@ rtw_intr_tx(struct rtw_softc *sc, uint16_t isr) } if ((isr & RTW_INTR_TX) != 0) - rtw_start(ifp); + rtw_start(ifp); /* in softint */ splx(s); } @@ -1915,7 +1915,7 @@ rtw_intr_beacon(struct rtw_softc *sc, uint16_t isr) } M_SETCTX(m, ieee80211_ref_node(ic->ic_bss)); IF_ENQUEUE(&sc->sc_beaconq, m); - rtw_start(&sc->sc_if); + rtw_start(&sc->sc_if); /* in softint */ } splx(s); diff --git a/sys/dev/ic/smc90cx6.c b/sys/dev/ic/smc90cx6.c index 589b2768889..433c6db6010 100644 --- a/sys/dev/ic/smc90cx6.c +++ b/sys/dev/ic/smc90cx6.c @@ -1,4 +1,4 @@ -/* $NetBSD: smc90cx6.c,v 1.68 2016/12/15 09:28:05 ozaki-r Exp $ */ +/* $NetBSD: smc90cx6.c,v 1.69 2017/05/23 02:19:14 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.68 2016/12/15 09:28:05 ozaki-r Exp $"); +__KERNEL_RCSID(0, "$NetBSD: smc90cx6.c,v 1.69 2017/05/23 02:19:14 ozaki-r Exp $"); /* #define BAHSOFTCOPY */ #define BAHRETRANSMIT /**/ @@ -198,6 +198,7 @@ bah_attach_subr(struct bah_softc *sc) ifp->if_mtu = ARCMTU; arc_ifattach(ifp, linkaddress); + if_deferred_start_init(ifp, NULL); #ifdef BAHSOFTCOPY sc->sc_rxcookie = softint_establish(SOFTINT_NET, bah_srint, sc); @@ -709,7 +710,7 @@ bah_tint(struct bah_softc *sc, int isr) softint_schedule(sc->sc_txcookie); #else /* call it directly */ - bah_start(ifp); + if_schedule_deferred_start(ifp); #endif } diff --git a/sys/dev/ic/smc91cxx.c b/sys/dev/ic/smc91cxx.c index 7a7a86c6bd0..00a05e0b27a 100644 --- a/sys/dev/ic/smc91cxx.c +++ b/sys/dev/ic/smc91cxx.c @@ -1,4 +1,4 @@ -/* $NetBSD: smc91cxx.c,v 1.94 2016/12/15 09:28:05 ozaki-r Exp $ */ +/* $NetBSD: smc91cxx.c,v 1.95 2017/05/23 02:19:14 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.94 2016/12/15 09:28:05 ozaki-r Exp $"); +__KERNEL_RCSID(0, "$NetBSD: smc91cxx.c,v 1.95 2017/05/23 02:19:14 ozaki-r Exp $"); #include "opt_inet.h" @@ -308,6 +308,7 @@ smc91cxx_attach(struct smc91cxx_softc *sc, u_int8_t *myea) /* Attach the interface. */ if_attach(ifp); + if_deferred_start_init(ifp, NULL); ether_ifattach(ifp, myea); /* @@ -1077,7 +1078,7 @@ smc91cxx_intr(void *arg) /* * Attempt to queue more packets for transmission. */ - smc91cxx_start(ifp); + if_schedule_deferred_start(ifp); /* * Reenable the interrupts we wish to receive now that processing diff --git a/sys/dev/ic/tulip.c b/sys/dev/ic/tulip.c index 823f45e6b2b..563c2877b5d 100644 --- a/sys/dev/ic/tulip.c +++ b/sys/dev/ic/tulip.c @@ -1,4 +1,4 @@ -/* $NetBSD: tulip.c,v 1.189 2016/12/15 09:28:05 ozaki-r Exp $ */ +/* $NetBSD: tulip.c,v 1.190 2017/05/23 02:19:14 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.189 2016/12/15 09:28:05 ozaki-r Exp $"); +__KERNEL_RCSID(0, "$NetBSD: tulip.c,v 1.190 2017/05/23 02:19:14 ozaki-r Exp $"); #include <sys/param.h> @@ -524,6 +524,7 @@ tlp_attach(struct tulip_softc *sc, const uint8_t *enaddr) * Attach the interface. */ if_attach(ifp); + if_deferred_start_init(ifp, NULL); ether_ifattach(ifp, enaddr); ether_set_ifflags_cb(&sc->sc_ethercom, tlp_ifflags_cb); @@ -1199,7 +1200,7 @@ tlp_intr(void *arg) } /* Try to get more packets going. */ - tlp_start(ifp); + if_schedule_deferred_start(ifp); if (handled) rnd_add_uint32(&sc->sc_rnd_source, status); diff --git a/sys/dev/pci/if_ale.c b/sys/dev/pci/if_ale.c index 6b557188238..bf7471c2a8d 100644 --- a/sys/dev/pci/if_ale.c +++ b/sys/dev/pci/if_ale.c @@ -1,4 +1,4 @@ -/* $NetBSD: if_ale.c,v 1.21 2016/12/15 09:28:05 ozaki-r Exp $ */ +/* $NetBSD: if_ale.c,v 1.22 2017/05/23 02:19:14 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.21 2016/12/15 09:28:05 ozaki-r Exp $"); +__KERNEL_RCSID(0, "$NetBSD: if_ale.c,v 1.22 2017/05/23 02:19:14 ozaki-r Exp $"); #include "vlan.h" @@ -572,6 +572,7 @@ ale_attach(device_t parent, device_t self, void *aux) ifmedia_set(&sc->sc_miibus.mii_media, IFM_ETHER | IFM_AUTO); if_attach(ifp); + if_deferred_start_init(ifp, NULL); ether_ifattach(ifp, sc->ale_eaddr); if (pmf_device_register(self, NULL, NULL)) @@ -1313,8 +1314,7 @@ ale_intr(void *xsc) } ale_txeof(sc); - if (!IFQ_IS_EMPTY(&ifp->if_snd)) - ale_start(ifp); + if_schedule_deferred_start(ifp); } /* Re-enable interrupts. */ diff --git a/sys/dev/pci/if_ipw.c b/sys/dev/pci/if_ipw.c index 3f320db404f..8e421b8a764 100644 --- a/sys/dev/pci/if_ipw.c +++ b/sys/dev/pci/if_ipw.c @@ -1,4 +1,4 @@ -/* $NetBSD: if_ipw.c,v 1.63 2017/02/02 10:05:35 nonaka Exp $ */ +/* $NetBSD: if_ipw.c,v 1.64 2017/05/23 02:19:14 ozaki-r Exp $ */ /* FreeBSD: src/sys/dev/ipw/if_ipw.c,v 1.15 2005/11/13 17:17:40 damien Exp */ /*- @@ -29,7 +29,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: if_ipw.c,v 1.63 2017/02/02 10:05:35 nonaka Exp $"); +__KERNEL_RCSID(0, "$NetBSD: if_ipw.c,v 1.64 2017/05/23 02:19:14 ozaki-r Exp $"); /*- * Intel(R) PRO/Wireless 2100 MiniPCI driver @@ -1242,7 +1242,7 @@ ipw_tx_intr(struct ipw_softc *sc) /* Call start() since some buffer descriptors have been released */ ifp->if_flags &= ~IFF_OACTIVE; - ipw_start(ifp); + ipw_start(ifp); /* in softint */ splx(s); } diff --git a/sys/dev/pci/if_iwi.c b/sys/dev/pci/if_iwi.c index 54f0fc6a0e1..dae13fd011a 100644 --- a/sys/dev/pci/if_iwi.c +++ b/sys/dev/pci/if_iwi.c @@ -1,4 +1,4 @@ -/* $NetBSD: if_iwi.c,v 1.102 2017/02/02 10:05:35 nonaka Exp $ */ +/* $NetBSD: if_iwi.c,v 1.103 2017/05/23 02:19:14 ozaki-r Exp $ */ /* $OpenBSD: if_iwi.c,v 1.111 2010/11/15 19:11:57 damien Exp $ */ /*- @@ -19,7 +19,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: if_iwi.c,v 1.102 2017/02/02 10:05:35 nonaka Exp $"); +__KERNEL_RCSID(0, "$NetBSD: if_iwi.c,v 1.103 2017/05/23 02:19:14 ozaki-r Exp $"); /*- * Intel(R) PRO/Wireless 2200BG/2225BG/2915ABG driver @@ -1485,7 +1485,7 @@ iwi_tx_intr(struct iwi_softc *sc, struct iwi_tx_ring *txq) ifp->if_flags &= ~IFF_OACTIVE; /* Call start() since some buffer descriptors have been released */ - iwi_start(ifp); + iwi_start(ifp); /* in softint */ } splx(s); diff --git a/sys/dev/pci/if_tl.c b/sys/dev/pci/if_tl.c index 9aedb2d1d44..6c48d987940 100644 --- a/sys/dev/pci/if_tl.c +++ b/sys/dev/pci/if_tl.c @@ -1,4 +1,4 @@ -/* $NetBSD: if_tl.c,v 1.106 2016/12/15 09:28:05 ozaki-r Exp $ */ +/* $NetBSD: if_tl.c,v 1.107 2017/05/23 02:19:14 ozaki-r Exp $ */ /* * Copyright (c) 1997 Manuel Bouyer. All rights reserved. @@ -31,7 +31,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: if_tl.c,v 1.106 2016/12/15 09:28:05 ozaki-r Exp $"); +__KERNEL_RCSID(0, "$NetBSD: if_tl.c,v 1.107 2017/05/23 02:19:14 ozaki-r Exp $"); #undef TLDEBUG #define TL_PRIV_STATS @@ -459,6 +459,7 @@ tl_pci_attach(device_t parent, device_t self, void *aux) ifp->if_timer = 0; IFQ_SET_READY(&ifp->if_snd); if_attach(ifp); + if_deferred_start_init(ifp, NULL); ether_ifattach(&(sc)->tl_if, (sc)->tl_enaddr); /* @@ -1168,8 +1169,7 @@ tl_intr(void *v) TL_HR_WRITE(sc, TL_HOST_CMD, HOST_CMD_GO); } sc->tl_if.if_timer = 0; - if (IFQ_IS_EMPTY(&sc->tl_if.if_snd) == 0) - tl_ifstart(&sc->tl_if); + if_schedule_deferred_start(&sc->tl_if); return 1; } #ifdef TLDEBUG @@ -1178,8 +1178,7 @@ tl_intr(void *v) } #endif sc->tl_if.if_timer = 0; - if (IFQ_IS_EMPTY(&sc->tl_if.if_snd) == 0) - tl_ifstart(&sc->tl_if); + if_schedule_deferred_start(&sc->tl_if); break; case TL_INTR_Stat: ack++; diff --git a/sys/dev/pci/if_vte.c b/sys/dev/pci/if_vte.c index 64a26888af2..c48573af9ad 100644 --- a/sys/dev/pci/if_vte.c +++ b/sys/dev/pci/if_vte.c @@ -1,4 +1,4 @@ -/* $NetBSD: if_vte.c,v 1.16 2016/12/15 09:28:05 ozaki-r Exp $ */ +/* $NetBSD: if_vte.c,v 1.17 2017/05/23 02:19:14 ozaki-r Exp $ */ /* * Copyright (c) 2011 Manuel Bouyer. All rights reserved. @@ -55,7 +55,7 @@ /* Driver for DM&P Electronics, Inc, Vortex86 RDC R6040 FastEthernet. */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: if_vte.c,v 1.16 2016/12/15 09:28:05 ozaki-r Exp $"); +__KERNEL_RCSID(0, "$NetBSD: if_vte.c,v 1.17 2017/05/23 02:19:14 ozaki-r Exp $"); #include <sys/param.h> #include <sys/systm.h> @@ -269,6 +269,7 @@ vte_attach(device_t parent, device_t self, void *aux) ifp->if_timer = 0; IFQ_SET_READY(&ifp->if_snd); if_attach(ifp); + if_deferred_start_init(ifp, NULL); ether_ifattach(&(sc)->vte_if, (sc)->vte_eaddr); if (pmf_device_register1(self, vte_suspend, vte_resume, vte_shutdown)) @@ -974,8 +975,7 @@ vte_intr(void *arg) vte_txeof(sc); if ((status & MISR_EVENT_CNT_OFLOW) != 0) vte_stats_update(sc); - if (!IFQ_IS_EMPTY(&ifp->if_snd)) - vte_ifstart(ifp); + if_schedule_deferred_start(ifp); if (--n > 0) status = CSR_READ_2(sc, VTE_MISR); else diff --git a/sys/dev/pci/if_wpi.c b/sys/dev/pci/if_wpi.c index fd4c4437d23..a7b16c9a6b6 100644 --- a/sys/dev/pci/if_wpi.c +++ b/sys/dev/pci/if_wpi.c @@ -1,4 +1,4 @@ -/* $NetBSD: if_wpi.c,v 1.77 2017/02/02 10:05:35 nonaka Exp $ */ +/* $NetBSD: if_wpi.c,v 1.78 2017/05/23 02:19:14 ozaki-r Exp $ */ /*- * Copyright (c) 2006, 2007 @@ -18,7 +18,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: if_wpi.c,v 1.77 2017/02/02 10:05:35 nonaka Exp $"); +__KERNEL_RCSID(0, "$NetBSD: if_wpi.c,v 1.78 2017/05/23 02:19:14 ozaki-r Exp $"); /* * Driver for Intel PRO/Wireless 3945ABG 802.11 network adapters. @@ -1665,7 +1665,7 @@ wpi_tx_intr(struct wpi_softc *sc, struct wpi_rx_desc *desc) sc->sc_tx_timer = 0; ifp->if_flags &= ~IFF_OACTIVE; - wpi_start(ifp); + wpi_start(ifp); /* in softint */ splx(s); } |
