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:
Adrian Chadd 2015-02-25 21:44:53 +00:00
parent 0b93a0b462
commit 977dc4e243
4 changed files with 4 additions and 8 deletions

View file

@ -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)",

View file

@ -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)",

View file

@ -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);

View file

@ -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);