]> git.baikalelectronics.ru Git - kernel.git/commit
ice: Fix allowing VF to request more/less queues via virtchnl
authorBrett Creeley <brett.creeley@intel.com>
Fri, 26 Feb 2021 21:19:20 +0000 (13:19 -0800)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Fri, 4 Jun 2021 14:37:48 +0000 (07:37 -0700)
commite1076a0a60fee939dc33ae60fbb2901576bf7d89
treeab84b95c2f050659bb61f41d0757798028ffc5bb
parent776a90a8013baaba0bf2c123114b8e7860036fcf
ice: Fix allowing VF to request more/less queues via virtchnl

Commit 5e8253075a43 ("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: 5e8253075a43 ("ice: Refactor VF reset")
Signed-off-by: Brett Creeley <brett.creeley@intel.com>
Tested-by: Konrad Jankowski <konrad0.jankowski@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/ice/ice_lib.c