Commit 34cdcb16 authored by Brett Creeley's avatar Brett Creeley Committed by Jeff Kirsher

ice: Update fields in ice_vsi_set_num_qs when reconfiguring

Currently when vsi->req_txqs or vsi->req_rxqs are set we don't
correctly set the number of vsi->num_q_vectors. Fix this by
setting the number of queue vectors based on the max
between the vsi->alloc_txqs and vsi->alloc_rxqs.
Signed-off-by: default avatarBrett Creeley <brett.creeley@intel.com>
Tested-by: default avatarAndrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: default avatarJeff Kirsher <jeffrey.t.kirsher@intel.com>
parent 0e5b36bc
...@@ -345,7 +345,7 @@ static void ice_vsi_set_num_qs(struct ice_vsi *vsi, u16 vf_id) ...@@ -345,7 +345,7 @@ static void ice_vsi_set_num_qs(struct ice_vsi *vsi, u16 vf_id)
case ICE_VSI_PF: case ICE_VSI_PF:
vsi->alloc_txq = pf->num_lan_tx; vsi->alloc_txq = pf->num_lan_tx;
vsi->alloc_rxq = pf->num_lan_rx; vsi->alloc_rxq = pf->num_lan_rx;
vsi->num_q_vectors = max_t(int, pf->num_lan_rx, pf->num_lan_tx); vsi->num_q_vectors = max_t(int, vsi->alloc_rxq, vsi->alloc_txq);
break; break;
case ICE_VSI_VF: case ICE_VSI_VF:
vf = &pf->vf[vsi->vf_id]; vf = &pf->vf[vsi->vf_id];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment