]> www.infradead.org Git - users/jedix/linux-maple.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)
committerSantosh Shilimkar <santosh.shilimkar@oracle.com>
Fri, 28 Aug 2015 15:11:50 +0000 (08:11 -0700)
commit0779ccefa24331f04885f488977533eb3b7ff0af
tree624b0f2587c6ef58a5344a345b93d8ce23634cc9
parent9faec96161388252c6d660dbe262036f2b5c4567
i40evf: Allow for an abundance of vectors

Orabug: 21570582

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>
(cherry picked from commit 973371da4d66b96736143bd3f2b2ff2331faae8f)
Signed-off-by: Brian Maly <brian.maly@oracle.com>
Signed-off-by: Santosh Shilimkar <santosh.shilimkar@oracle.com>
drivers/net/ethernet/intel/i40evf/i40evf_main.c