diff options
author | adrian <adrian@FreeBSD.org> | 2015-02-25 21:44:53 +0000 |
---|---|---|
committer | adrian <adrian@FreeBSD.org> | 2015-02-25 21:44:53 +0000 |
commit | c346822f0b379ed97cef8ec09f8846d4879736d1 (patch) | |
tree | 66e0dc155fa43d824db62793f337818ab56fd512 /sys/dev/ixl | |
parent | fc3e39a724ec345b7d21e4174c71d5fb1b89c7dd (diff) | |
download | FreeBSD-src-c346822f0b379ed97cef8ec09f8846d4879736d1.zip FreeBSD-src-c346822f0b379ed97cef8ec09f8846d4879736d1.tar.gz |
Migrate using CPU_ZERO() + CPU_SET() -> CPU_SETOF().
Tested:
* ixgbe, igb, RSS enabled
Submitted by: jhb
Sponsored by: Norse Corp, Inc.
Diffstat (limited to 'sys/dev/ixl')
-rwxr-xr-x | sys/dev/ixl/if_ixl.c | 3 | ||||
-rw-r--r-- | sys/dev/ixl/if_ixlv.c | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/sys/dev/ixl/if_ixl.c b/sys/dev/ixl/if_ixl.c index 61aef44..9c3c161 100755 --- a/sys/dev/ixl/if_ixl.c +++ b/sys/dev/ixl/if_ixl.c @@ -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); diff --git a/sys/dev/ixl/if_ixlv.c b/sys/dev/ixl/if_ixlv.c index 836853f..8cf4a43 100644 --- a/sys/dev/ixl/if_ixlv.c +++ b/sys/dev/ixl/if_ixlv.c @@ -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); |