]> 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)
commit89a87e14f9e19d57ec34530e016e31b304dcd4e9
treec94e574f2f81ac3319cb576c60b300c5f12438fe
parent18e15f2f4e8413efdf5e451e000150e9ad0151d5
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