]> git.baikalelectronics.ru Git - kernel.git/commit
i40evf: don't use more queues than CPUs
authorMitch Williams <mitch.a.williams@intel.com>
Sat, 25 Oct 2014 03:24:34 +0000 (03:24 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Tue, 11 Nov 2014 14:02:00 +0000 (06:02 -0800)
commit04b12574b5e686a3641d0f39b3c24dac5f39a572
tree037a8b55b9e2756d0e13c00501d379a1d9b1e4f6
parent42be55c435abfe8553106b06ba611219ef7c3aa3
i40evf: don't use more queues than CPUs

It's kind of silly to configure and attempt to use a bunch of queue
pairs when you're running on a single (virtual) CPU. Instead of
unconditionally configuring all of the queues that the PF gives us,
clamp the number of queue pairs to the number of CPUs.

Change-ID: I321714c9e15072ee76de8f95ab9a81f86ed347d1
Signed-off-by: Mitch Williams <mitch.a.williams@intel.com>
Signed-off-by: Patrick Lu <patrick.lu@intel.com>
Tested-by: Jim Young <jamesx.m.young@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/i40evf/i40evf.h
drivers/net/ethernet/intel/i40evf/i40evf_ethtool.c
drivers/net/ethernet/intel/i40evf/i40evf_main.c
drivers/net/ethernet/intel/i40evf/i40evf_virtchnl.c