]> git.karo-electronics.de Git - linux-beck.git/commitdiff
i40evf: set real num queues
authorMitch Williams <mitch.a.williams@intel.com>
Fri, 6 Nov 2015 23:26:00 +0000 (15:26 -0800)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Thu, 3 Dec 2015 10:23:29 +0000 (02:23 -0800)
Use the helper function to set the real number of RX queues, and also
set the real number of TX queues.

Change-ID: I67982799de3f248fb4158ccdc9b1a74385f42ddd
Signed-off-by: Mitch Williams <mitch.a.williams@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/i40evf/i40evf_main.c

index 38f882cede145fdd4db37a7bed030517c42dd827..ba0360587feaa155568835f4a71aa8e19bb91ea6 100644 (file)
@@ -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;
 }