aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/igb/igb_main.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/igb/igb_main.c b/drivers/net/igb/igb_main.c
index 3881918f5382..e79689eeb1fe 100644
--- a/drivers/net/igb/igb_main.c
+++ b/drivers/net/igb/igb_main.c
@@ -630,9 +630,6 @@ static void igb_cache_ring_register(struct igb_adapter *adapter)
630 for (; i < adapter->rss_queues; i++) 630 for (; i < adapter->rss_queues; i++)
631 adapter->rx_ring[i]->reg_idx = rbase_offset + 631 adapter->rx_ring[i]->reg_idx = rbase_offset +
632 Q_IDX_82576(i); 632 Q_IDX_82576(i);
633 for (; j < adapter->rss_queues; j++)
634 adapter->tx_ring[j]->reg_idx = rbase_offset +
635 Q_IDX_82576(j);
636 } 633 }
637 case e1000_82575: 634 case e1000_82575:
638 case e1000_82580: 635 case e1000_82580:
@@ -996,7 +993,10 @@ static void igb_set_interrupt_capability(struct igb_adapter *adapter)
996 993
997 /* Number of supported queues. */ 994 /* Number of supported queues. */
998 adapter->num_rx_queues = adapter->rss_queues; 995 adapter->num_rx_queues = adapter->rss_queues;
999 adapter->num_tx_queues = adapter->rss_queues; 996 if (adapter->vfs_allocated_count)
997 adapter->num_tx_queues = 1;
998 else
999 adapter->num_tx_queues = adapter->rss_queues;
1000 1000
1001 /* start with one vector for every rx queue */ 1001 /* start with one vector for every rx queue */
1002 numvecs = adapter->num_rx_queues; 1002 numvecs = adapter->num_rx_queues;