]> git.karo-electronics.de Git - karo-tx-linux.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)
commit283aeafe6bf06af48068478eaf332f7a227e9af4
tree7c543ccda4bab90fb813facbe6092213f0d8e11a
parent707636c6481696c3b73209c9a7f8c482f0748373
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