aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/wtap/if_wtap.c
diff options
context:
space:
mode:
authorGleb Smirnoff <glebius@FreeBSD.org>2020-02-11 18:57:07 +0000
committerGleb Smirnoff <glebius@FreeBSD.org>2020-02-11 18:57:07 +0000
commit6c3e93cb5a4aa4b8a2d8d4d326f2a7c34d3a4458 (patch)
treedafe70452ee0f6a65323f5c914a4a846c5cf0faa /sys/dev/wtap/if_wtap.c
parent4426b2e64bd6ff5b05997d985140323b3db67085 (diff)
downloadsrc-6c3e93cb5a4aa4b8a2d8d4d326f2a7c34d3a4458.tar.gz
src-6c3e93cb5a4aa4b8a2d8d4d326f2a7c34d3a4458.zip
Use NET_TASK_INIT() and NET_GROUPTASK_INIT() for drivers that process
incoming packets in taskqueue context. Reviewed by: hselasky Differential Revision: https://reviews.freebsd.org/D23518
Notes
Notes: svn path=/head/; revision=357772
Diffstat (limited to 'sys/dev/wtap/if_wtap.c')
-rw-r--r--sys/dev/wtap/if_wtap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/wtap/if_wtap.c b/sys/dev/wtap/if_wtap.c
index 3244c67213d8..e7a2986d0543 100644
--- a/sys/dev/wtap/if_wtap.c
+++ b/sys/dev/wtap/if_wtap.c
@@ -637,7 +637,7 @@ wtap_attach(struct wtap_softc *sc, const uint8_t *macaddr)
sc->sc_tq = taskqueue_create("wtap_taskq", M_NOWAIT | M_ZERO,
taskqueue_thread_enqueue, &sc->sc_tq);
taskqueue_start_threads(&sc->sc_tq, 1, PI_SOFT, "%s taskQ", sc->name);
- TASK_INIT(&sc->sc_rxtask, 0, wtap_rx_proc, sc);
+ NET_TASK_INIT(&sc->sc_rxtask, 0, wtap_rx_proc, sc);
ic->ic_softc = sc;
ic->ic_name = sc->name;