]> www.infradead.org Git - users/jedix/linux-maple.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)
committerJack Vogel <jack.vogel@oracle.com>
Tue, 10 Oct 2017 21:15:23 +0000 (14:15 -0700)
commit4000c93b4547ec57508c0ebcbe6c4d458f51e3da
tree4e061c97e856349191470aad26859a5b742c802f
parent9c0d79113191082be95ec2f35c6dbc6cc8cc3379
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>
Orabug: 26785018
(cherry picked from commit 283aeafe6bf06af48068478eaf332f7a227e9af4)
Signed-off-by: Jack Vogel <jack.vogel@oracle.com>
Reviewed-by: Kyle Fortin <kyle.fortin@oracle.com>
drivers/net/ethernet/intel/i40evf/i40evf_main.c