i40e: Fix recalculation of MSI-X vectors for VMDq
authorPatryk Małek <patryk.malek@intel.com>
Thu, 10 May 2018 12:59:44 +0000 (05:59 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Mon, 14 May 2018 14:05:16 +0000 (07:05 -0700)
commitca12c9d4213fe8203d58632cd8ad25b5abcc7ef2
treed863ab39388b21eed58da04b7b174a5667899046
parent132ee00eed22e540aadbd111c2f9619c9bcc6413
i40e: Fix recalculation of MSI-X vectors for VMDq

This patch adds a recalculation of number of MSI-X
vectors for VMDq in the case where we have less
vectors available than we would want to reserve for
VMDq.

It fixes the issue where we recalculate vectors left
and vectors wanted but we didn't take into account
the reduced number of queue pairs per VSI.

Signed-off-by: Patryk Małek <patryk.malek@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/i40e/i40e_main.c