]> 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)
commit4105e9fe478a05f4d7b114b997498092cafeb0b8
tree7a56e74c4754c0a64ec9af8d8b3a400a84cd0981
parentde0e484a054ccc3b751751487d03e345f94f421c
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