]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitfddae306cce80e7832fe6ea3dabcf9ebcfe489ef
treec94e574f2f81ac3319cb576c60b300c5f12438fe
parent3c8dae11faaf7100d79b3a5b227c504a93d2ae51
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