mirror of
https://github.com/opnsense/src.git
synced 2026-06-13 18:50:31 -04:00
epair: unbind prior to returning to userspace
If 'options RSS' is set we bind the epair tasks to different CPUs. We must take care to not keep the current thread bound to the last CPU when we return to userspace. MFC after: 1 week Sponsored by: Orange Business Services
This commit is contained in:
parent
017e7d0390
commit
cbbce42345
1 changed files with 3 additions and 0 deletions
|
|
@ -826,6 +826,9 @@ epair_mod_init(void)
|
|||
|
||||
epair_tasks.tasks++;
|
||||
}
|
||||
thread_lock(curthread);
|
||||
sched_unbind(curthread);
|
||||
thread_unlock(curthread);
|
||||
#else
|
||||
snprintf(name, sizeof(name), "epair_task");
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue