summaryrefslogtreecommitdiffstats
path: root/sys/dev/ixl
diff options
context:
space:
mode:
authoradrian <adrian@FreeBSD.org>2015-02-25 21:44:53 +0000
committeradrian <adrian@FreeBSD.org>2015-02-25 21:44:53 +0000
commitc346822f0b379ed97cef8ec09f8846d4879736d1 (patch)
tree66e0dc155fa43d824db62793f337818ab56fd512 /sys/dev/ixl
parentfc3e39a724ec345b7d21e4174c71d5fb1b89c7dd (diff)
downloadFreeBSD-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-xsys/dev/ixl/if_ixl.c3
-rw-r--r--sys/dev/ixl/if_ixlv.c3
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);
OpenPOWER on IntegriCloud