Skip to content

Commit f045769

Browse files
bcreeley13anguy11
authored andcommitted
ice: Fix allowing VF to request more/less queues via virtchnl
Commit 12bb018 ("ice: Refactor VF reset") caused a regression that removes the ability for a VF to request a different amount of queues via VIRTCHNL_OP_REQUEST_QUEUES. This prevents VF drivers to either increase or decrease the number of queue pairs they are allocated. Fix this by using the variable vf->num_req_qs when determining the vf->num_vf_qs during VF VSI creation. Fixes: 12bb018 ("ice: Refactor VF reset") Signed-off-by: Brett Creeley <[email protected]> Tested-by: Konrad Jankowski <[email protected]> Signed-off-by: Tony Nguyen <[email protected]>
1 parent 1a80242 commit f045769

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/net/ethernet/intel/ice/ice_lib.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,8 @@ static void ice_vsi_set_num_qs(struct ice_vsi *vsi, u16 vf_id)
200200
break;
201201
case ICE_VSI_VF:
202202
vf = &pf->vf[vsi->vf_id];
203+
if (vf->num_req_qs)
204+
vf->num_vf_qs = vf->num_req_qs;
203205
vsi->alloc_txq = vf->num_vf_qs;
204206
vsi->alloc_rxq = vf->num_vf_qs;
205207
/* pf->num_msix_per_vf includes (VF miscellaneous vector +

0 commit comments

Comments
 (0)