]> git.baikalelectronics.ru Git - kernel.git/commit
i40evf: allocate queues before we setup the interrupts and q_vectors
authorJacob Keller <jacob.e.keller@intel.com>
Wed, 19 Apr 2017 13:25:59 +0000 (09:25 -0400)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Sun, 30 Apr 2017 11:57:42 +0000 (04:57 -0700)
commit1a07f4b85ffba7d287df0e21b798c9627e6e9a64
tree7c543ccda4bab90fb813facbe6092213f0d8e11a
parente2498ab169cb6c7b6c17264b245cdd5c94e7ab4d
i40evf: allocate queues before we setup the interrupts and q_vectors

This matches the ordering of how we free stuff during reset and remove.
It also makes logical sense because we set the interrupts based on the
number of queues. Currently this doesn't really matter in practice.
However a future patch moves the assignment of num_active_queues into
i40evf_alloc_queues, which is required by
i40evf_set_interrupt_capability.

Signed-off-by: Jacob Keller <jacob.e.keller@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