summaryrefslogtreecommitdiffstats
path: root/sys/dev/ixgbe/ixgbe.c
diff options
context:
space:
mode:
authorjfv <jfv@FreeBSD.org>2009-06-25 18:40:27 +0000
committerjfv <jfv@FreeBSD.org>2009-06-25 18:40:27 +0000
commitd8f38efe5e89859e90c330eda853ab6e856ecb59 (patch)
tree4d83373d6ee7bdb8ca25b1e2724954dbbcf36fb7 /sys/dev/ixgbe/ixgbe.c
parente059cd9143faa34a2e3352165b9bc573d50b7081 (diff)
downloadFreeBSD-src-d8f38efe5e89859e90c330eda853ab6e856ecb59.zip
FreeBSD-src-d8f38efe5e89859e90c330eda853ab6e856ecb59.tar.gz
Decided to limit the interrupt bind to multiqueue
config as done in igb.
Diffstat (limited to 'sys/dev/ixgbe/ixgbe.c')
-rw-r--r--sys/dev/ixgbe/ixgbe.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/dev/ixgbe/ixgbe.c b/sys/dev/ixgbe/ixgbe.c
index c6e63ec..040863c 100644
--- a/sys/dev/ixgbe/ixgbe.c
+++ b/sys/dev/ixgbe/ixgbe.c
@@ -2156,7 +2156,8 @@ ixgbe_allocate_msix(struct adapter *adapter)
** 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 *adapter)
** 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,
OpenPOWER on IntegriCloud