Author: adrian
Date: Mon May 23 03:46:36 2016
New Revision: 300444
URL: https://svnweb.freebsd.org/changeset/base/300444

Log:
  [ixl] fix build for RSS.
  
  Untested.

Modified:
  head/sys/dev/ixl/if_ixl.c

Modified: head/sys/dev/ixl/if_ixl.c
==============================================================================
--- head/sys/dev/ixl/if_ixl.c   Mon May 23 03:29:43 2016        (r300443)
+++ head/sys/dev/ixl/if_ixl.c   Mon May 23 03:46:36 2016        (r300444)
@@ -2264,6 +2264,10 @@ ixl_setup_queue_tqs(struct ixl_vsi *vsi)
 {
        struct ixl_queue *que = vsi->queues;
        device_t dev = vsi->dev;
+#ifdef RSS
+       cpuset_t cpu_mask;
+       int cpu_id;
+#endif
 
        /* Create queue tasks and start queue taskqueues */
        for (int i = 0; i < vsi->num_queues; i++, que++) {
@@ -2272,6 +2276,7 @@ ixl_setup_queue_tqs(struct ixl_vsi *vsi)
                que->tq = taskqueue_create_fast("ixl_que", M_NOWAIT,
                    taskqueue_thread_enqueue, &que->tq);
 #ifdef RSS
+               cpu_id = rss_getcpu(i % rss_getnumbuckets());
                CPU_SETOF(cpu_id, &cpu_mask);
                taskqueue_start_threads_cpuset(&que->tq, 1, PI_NET,
                    &cpu_mask, "%s (bucket %d)",
@@ -2355,9 +2360,6 @@ ixl_setup_queue_msix(struct ixl_vsi *vsi
        struct          ixl_queue *que = vsi->queues;
        struct          tx_ring  *txr;
        int             error, rid, vector = 1;
-#ifdef RSS
-       cpuset_t cpu_mask;
-#endif
 
        /* Queue interrupt vector numbers start at 1 (adminq intr is 0) */
        for (int i = 0; i < vsi->num_queues; i++, vector++, que++) {
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to