i40e: set num_queue_pairs to num configured by VF
authorAshish Shah <ashish.n.shah@intel.com>
Thu, 10 Jul 2014 07:58:15 +0000 (07:58 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Wed, 27 Aug 2014 07:22:52 +0000 (00:22 -0700)
commit5f5e33b6970953fc849852414014862fb388f6da
tree40c2ff389468104f2e66d700f2d8bf5089649c7d
parentc1d11cef92199764a3b0f35efc4a3583afedaddc
i40e: set num_queue_pairs to num configured by VF

Change vsi->num_queue_pairs to equal the number that are configured
by the VF. This, in turn, limits the number of queues that are
enable/disabled. This fixes the mismatched case for when a VF configures
fewer queues than is allocated to it by the PF.

Change other sections to use alloc_queue_pairs as warranted.

Change-ID: I0de1b55c9084e7be6acc818da8569f12128a82c2
Signed-off-by: Ashish Shah <ashish.n.shah@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c