]> git.baikalelectronics.ru Git - kernel.git/commit
i40e: limit lan queue count in large CPU count machine
authorShannon Nelson <shannon.nelson@oracle.com>
Tue, 25 Jul 2017 01:17:42 +0000 (18:17 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Mon, 2 Oct 2017 19:46:34 +0000 (12:46 -0700)
commitef25f1df8f65f0ca2a1e867c6a9380340ed42ae9
tree7a56e74c4754c0a64ec9af8d8b3a400a84cd0981
parent3bfeaae18cc370b6de5f0f6b153eb6019fe0fb57
i40e: limit lan queue count in large CPU count machine

When a machine has more CPUs than queue pairs, e.g. 512 cores, the
counting gets a little funky and turns off Flow Director with the
message:
  not enough queues for Flow Director. Flow Director feature is disabled

This patch limits the number of lan queues initially allocated to
be sure we have some left for FD and other features.

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