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/dev/ic/tulip.c | |
| 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/dev/ic/tulip.c')
| -rw-r--r-- | sys/dev/ic/tulip.c | 7 |
1 files changed, 4 insertions, 3 deletions
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); |
