Author: jfv
Date: Thu Jun 25 18:40:27 2009
New Revision: 194988
URL: http://svn.freebsd.org/changeset/base/194988
Log:
  Decided to limit the interrupt bind to multiqueue
  config as done in igb.

Modified:
  head/sys/dev/ixgbe/ixgbe.c

Modified: head/sys/dev/ixgbe/ixgbe.c
==============================================================================
--- head/sys/dev/ixgbe/ixgbe.c  Thu Jun 25 18:35:19 2009        (r194987)
+++ head/sys/dev/ixgbe/ixgbe.c  Thu Jun 25 18:40:27 2009        (r194988)
@@ -2156,7 +2156,8 @@ ixgbe_allocate_msix(struct adapter *adap
                ** Bind the msix vector, and thus the
                ** ring to the corresponding cpu.
                */
-               bus_bind_intr(dev, txr->res, i);
+               if (adapter->num_queues > 1)
+                       bus_bind_intr(dev, txr->res, i);
 
                TASK_INIT(&txr->tx_task, 0, ixgbe_handle_tx, txr);
                txr->tq = taskqueue_create_fast("ixgbe_txq", M_NOWAIT,
@@ -2192,7 +2193,8 @@ ixgbe_allocate_msix(struct adapter *adap
                ** Bind the msix vector, and thus the
                ** ring to the corresponding cpu.
                */
-               bus_bind_intr(dev, rxr->res, i);
+               if (adapter->num_queues > 1)
+                       bus_bind_intr(dev, rxr->res, i);
 
                TASK_INIT(&rxr->rx_task, 0, ixgbe_handle_rx, rxr);
                rxr->tq = taskqueue_create_fast("ixgbe_rxq", M_NOWAIT,
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to