diff options
author | Gleb Smirnoff <glebius@FreeBSD.org> | 2020-02-11 18:57:07 +0000 |
---|---|---|
committer | Gleb Smirnoff <glebius@FreeBSD.org> | 2020-02-11 18:57:07 +0000 |
commit | 6c3e93cb5a4aa4b8a2d8d4d326f2a7c34d3a4458 (patch) | |
tree | dafe70452ee0f6a65323f5c914a4a846c5cf0faa /sys/dev/malo | |
parent | 4426b2e64bd6ff5b05997d985140323b3db67085 (diff) | |
download | src-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/malo')
-rw-r--r-- | sys/dev/malo/if_malo.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/malo/if_malo.c b/sys/dev/malo/if_malo.c index ae21af8b4536..a7823dd6003d 100644 --- a/sys/dev/malo/if_malo.c +++ b/sys/dev/malo/if_malo.c @@ -253,7 +253,7 @@ malo_attach(uint16_t devid, struct malo_softc *sc) taskqueue_start_threads(&sc->malo_tq, 1, PI_NET, "%s taskq", device_get_nameunit(sc->malo_dev)); - TASK_INIT(&sc->malo_rxtask, 0, malo_rx_proc, sc); + NET_TASK_INIT(&sc->malo_rxtask, 0, malo_rx_proc, sc); TASK_INIT(&sc->malo_txtask, 0, malo_tx_proc, sc); ic->ic_softc = sc; |