[Intel-wired-lan] [next PATCH S21 02/14] i40evf: set real num queues

Joshua Hay joshua.a.hay at intel.com
Fri Nov 6 23:26:00 UTC 2015


From: Mitch Williams <mitch.a.williams at intel.com>

Use the helper function to set the real number of RX queues, and also
set the real number of TX queues.

Signed-off-by: Mitch Williams <mitch.a.williams at intel.com>
Change-ID: I67982799de3f248fb4158ccdc9b1a74385f42ddd
---
 drivers/net/ethernet/intel/i40evf/i40evf_main.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/net/ethernet/intel/i40evf/i40evf_main.c b/drivers/net/ethernet/intel/i40evf/i40evf_main.c
index 74917ca..33a08f8 100644
--- a/drivers/net/ethernet/intel/i40evf/i40evf_main.c
+++ b/drivers/net/ethernet/intel/i40evf/i40evf_main.c
@@ -1205,7 +1205,8 @@ static int i40evf_set_interrupt_capability(struct i40evf_adapter *adapter)
 	err = i40evf_acquire_msix_vectors(adapter, v_budget);
 
 out:
-	adapter->netdev->real_num_tx_queues = pairs;
+	netif_set_real_num_rx_queues(adapter->netdev, pairs);
+	netif_set_real_num_tx_queues(adapter->netdev, pairs);
 	return err;
 }
 
-- 
2.1.0



More information about the Intel-wired-lan mailing list