mirror of
https://github.com/opnsense/src.git
synced 2026-04-23 15:19:31 -04:00
Migrate using CPU_ZERO() + CPU_SET() -> CPU_SETOF().
Tested: * ixgbe, igb, RSS enabled Submitted by: jhb Sponsored by: Norse Corp, Inc.
This commit is contained in:
parent
0b93a0b462
commit
977dc4e243
4 changed files with 4 additions and 8 deletions
|
|
@ -2569,8 +2569,7 @@ igb_allocate_msix(struct adapter *adapter)
|
|||
* round-robin bucket -> queue -> CPU allocation.
|
||||
*/
|
||||
#ifdef RSS
|
||||
CPU_ZERO(&cpu_mask);
|
||||
CPU_SET(cpu_id, &cpu_mask);
|
||||
CPU_SETOF(cpu_id, &cpu_mask);
|
||||
taskqueue_start_threads_cpuset(&que->tq, 1, PI_NET,
|
||||
&cpu_mask,
|
||||
"%s que (bucket %d)",
|
||||
|
|
|
|||
|
|
@ -2463,8 +2463,7 @@ ixgbe_allocate_msix(struct adapter *adapter)
|
|||
que->tq = taskqueue_create_fast("ixgbe_que", M_NOWAIT,
|
||||
taskqueue_thread_enqueue, &que->tq);
|
||||
#ifdef RSS
|
||||
CPU_ZERO(&cpu_mask);
|
||||
CPU_SET(cpu_id, &cpu_mask);
|
||||
CPU_SETOF(cpu_id, &cpu_mask);
|
||||
taskqueue_start_threads_cpuset(&que->tq, 1, PI_NET,
|
||||
&cpu_mask,
|
||||
"%s (bucket %d)",
|
||||
|
|
|
|||
|
|
@ -1945,8 +1945,7 @@ ixl_assign_vsi_msix(struct ixl_pf *pf)
|
|||
que->tq = taskqueue_create_fast("ixl_que", M_NOWAIT,
|
||||
taskqueue_thread_enqueue, &que->tq);
|
||||
#ifdef RSS
|
||||
CPU_ZERO(&cpu_mask);
|
||||
CPU_SET(cpu_id, &cpu_mask);
|
||||
CPU_SETOF(cpu_id, &cpu_mask);
|
||||
taskqueue_start_threads_cpuset(&que->tq, 1, PI_NET,
|
||||
&cpu_mask, "%s (bucket %d)",
|
||||
device_get_nameunit(dev), cpu_id);
|
||||
|
|
|
|||
|
|
@ -1419,8 +1419,7 @@ ixlv_assign_msix(struct ixlv_sc *sc)
|
|||
que->tq = taskqueue_create_fast("ixlv_que", M_NOWAIT,
|
||||
taskqueue_thread_enqueue, &que->tq);
|
||||
#ifdef RSS
|
||||
CPU_ZERO(&cpu_mask);
|
||||
CPU_SET(cpu_id, &cpu_mask);
|
||||
CPU_SETOF(cpu_id, &cpu_mask);
|
||||
taskqueue_start_threads_cpuset(&que->tq, 1, PI_NET,
|
||||
&cpu_mask, "%s (bucket %d)",
|
||||
device_get_nameunit(dev), cpu_id);
|
||||
|
|
|
|||
Loading…
Reference in a new issue