OSDN Git Service

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)
commite50d5751c807853cd0fce0b5c46479cc6274014f
tree7a56e74c4754c0a64ec9af8d8b3a400a84cd0981
parent1dd236fda0c500a21c54f2140dadc488cde9265b
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