Use NET_TASK_INIT() and NET_GROUPTASK_INIT() for drivers that process
incoming packets in taskqueue context. This patch extends r357772. Differential Revision: https://reviews.freebsd.org/D23742 Reviewed by: glebius@ Sponsored by: Mellanox Technologies
This commit is contained in:
@@ -2550,7 +2550,7 @@ ip_dn_init(void)
|
||||
|
||||
DN_LOCK_INIT();
|
||||
|
||||
TASK_INIT(&dn_task, 0, dummynet_task, curvnet);
|
||||
NET_TASK_INIT(&dn_task, 0, dummynet_task, curvnet);
|
||||
dn_tq = taskqueue_create_fast("dummynet", M_WAITOK,
|
||||
taskqueue_thread_enqueue, &dn_tq);
|
||||
taskqueue_start_threads(&dn_tq, 1, PI_NET, "dummynet");
|
||||
|
||||
Reference in New Issue
Block a user