]> 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)
commit0d16be094579b973961ad713e260774338c5a020
tree7c543ccda4bab90fb813facbe6092213f0d8e11a
parentcbdbe21ee5d77de9914ae156fea7d57666ea2ee9
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