]> git.baikalelectronics.ru Git - kernel.git/commit
i40e: only redistribute MSI-X vectors when needed
authorShannon Nelson <shannon.nelson@oracle.com>
Tue, 10 Oct 2017 21:56:58 +0000 (14:56 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Tue, 31 Oct 2017 17:39:22 +0000 (10:39 -0700)
commitc342e6bec8bce979c11b1be94655145cb093546f
tree829f4921babf5262846b806c1161e42c4b0c350e
parented5e7a6c4c3ca3b5932b63d9579110e13d52e682
i40e: only redistribute MSI-X vectors when needed

Whether or not there are vectors_left, we only need to redistribute
our vectors if we didn't get as many as we requested.  With the current
check, the code will try to redistribute even if we did in fact get all
the vectors we requested - this can happen when we have more CPUs than
we do vectors.  This restores an earlier check to be sure we only
redistribute if we didn't get the full count we requested.

Fixes: d5b71835d581 (i40e: fix MSI-X vector redistribution if hw limit is reached)
Signed-off-by: Shannon Nelson <shannon.nelson@oracle.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