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>
This commit is contained in:

committed by
Jeff Kirsher

parent
f8d4db35e8
commit
cc0529271f
@@ -191,6 +191,7 @@ struct i40evf_adapter {
|
||||
struct i40e_q_vector *q_vector[MAX_MSIX_Q_VECTORS];
|
||||
struct list_head vlan_filter_list;
|
||||
char misc_vector_name[IFNAMSIZ + 9];
|
||||
int num_active_queues;
|
||||
|
||||
/* TX */
|
||||
struct i40e_ring *tx_rings[I40E_MAX_VSI_QP];
|
||||
|
Reference in New Issue
Block a user