]> git.baikalelectronics.ru Git - kernel.git/commit
i40evf: Allow for an abundance of vectors
authorMitch Williams <mitch.a.williams@intel.com>
Mon, 27 Apr 2015 18:57:09 +0000 (14:57 -0400)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Wed, 15 Jul 2015 01:26:41 +0000 (18:26 -0700)
commitcc621afd6820007159f8ccde119890965f072899
treefc73faa01c6a0db5f8ddc300c0bc2ebdc37bae99
parent305a27e2f84ee08f1db68122348e1b29a9736ba2
i40evf: Allow for an abundance of vectors

The driver currently only maps TX and RX queues to a single MSI-X vector
per queue pair if there are exactly enough vectors for this.
Unfortunately, if we have too many vectors it will fail and allocate
queues to vectors in a suboptimal manner. Change the condition check to
allow for excess vectors. In this case, the extras just won't be used.

Change-ID: I23e1e2955c64739c86612db88a25583e6a7e0b17
Signed-off-by: Mitch Williams <mitch.a.williams@intel.com>
Tested-by: Jim Young <james.m.young@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/i40evf/i40evf_main.c