Message ID | 1430161042-28494-3-git-send-email-catherine.sullivan@intel.com |
---|---|
State | Accepted |
Delegated to: | Jeff Kirsher |
Headers | show |
> -----Original Message----- > From: Intel-wired-lan [mailto:intel-wired-lan-bounces@lists.osuosl.org] On > Behalf Of Catherine Sullivan > Sent: Monday, April 27, 2015 11:57 AM > To: intel-wired-lan@lists.osuosl.org > Subject: [Intel-wired-lan] [net-next S5 02/15] i40evf: Allow for an abundance > of vectors > > From: Mitch Williams <mitch.a.williams@intel.com> > > 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. > > Signed-off-by: Mitch Williams <mitch.a.williams@intel.com> > Change-ID: I23e1e2955c64739c86612db88a25583e6a7e0b17 > --- > drivers/net/ethernet/intel/i40evf/i40evf_main.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > Tested-by: Jim Young <james.m.young@intel.com>
diff --git a/drivers/net/ethernet/intel/i40evf/i40evf_main.c b/drivers/net/ethernet/intel/i40evf/i40evf_main.c index 37e66ec..23a81da 100644 --- a/drivers/net/ethernet/intel/i40evf/i40evf_main.c +++ b/drivers/net/ethernet/intel/i40evf/i40evf_main.c @@ -405,7 +405,7 @@ static int i40evf_map_rings_to_vectors(struct i40evf_adapter *adapter) /* The ideal configuration... * We have enough vectors to map one per queue. */ - if (q_vectors == (rxr_remaining * 2)) { + if (q_vectors >= (rxr_remaining * 2)) { for (; rxr_idx < rxr_remaining; v_start++, rxr_idx++) i40evf_map_vector_to_rxq(adapter, v_start, rxr_idx);