i40e: only set up the rings to be used
authorShannon Nelson <shannon.nelson@intel.com>
Wed, 20 Nov 2013 10:02:57 +0000 (10:02 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Sat, 7 Dec 2013 01:11:09 +0000 (17:11 -0800)
commitac6c5e3d0e9e784ef8b015085c83dee0253324b0
treec94e574f2f81ac3319cb576c60b300c5f12438fe
parent4617e8c081382baf11377b999e9eed22ffa1bdf6
i40e: only set up the rings to be used

The VSI may be allocated more queues (alloc_queue_pairs) than actually
are to be used (num_queue_pairs), so only allocate rings for the queues
to be used.  The numbers will likely be the same for most VSIs, but can
be different based on how TCs are assigned and enabled.

Change-Id: Ie40f7ad0affbc4b45d6f049bcf02ee2fa24edc74
Signed-off-by: Shannon Nelson <shannon.nelson@intel.com>
Signed-off-by: Jesse Brandeburg <jesse.brandeburg@intel.com>
Tested-by: Kavindya Deegala <kavindya.s.deegala@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/i40e/i40e_main.c