svn commit: r194988 - head/sys/dev/ixgbe

Jack F Vogel jfv at FreeBSD.org
Thu Jun 25 18:40:28 UTC 2009


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,


More information about the svn-src-all mailing list