]> git.baikalelectronics.ru Git - kernel.git/commit
ice: Refactor VIRTCHNL_OP_CONFIG_VSI_QUEUES handling
authorBrett Creeley <brett.creeley@intel.com>
Tue, 2 Mar 2021 18:15:40 +0000 (10:15 -0800)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Mon, 7 Jun 2021 15:59:01 +0000 (08:59 -0700)
commit6c9defde74ad9cdb182b12cb6a3bd0e79ba9fcf4
treeecc66d8ef794e43d9da077f950df7f28caa66238
parent3d64e04136b19a6259df2857610b38011f790e1a
ice: Refactor VIRTCHNL_OP_CONFIG_VSI_QUEUES handling

Currently, when a VF requests queue configuration via
VIRTCHNL_OP_CONFIG_VSI_QUEUES the PF driver expects that this message
will only be called once and we always assume the queues being
configured start from 0. This is incorrect and is causing issues when
a VF tries to send this message for multiple queue blocks. Fix this by
using the queue_id specified in the virtchnl message and allowing for
individual Rx and/or Tx queues to be configured.

Also, reduce the duplicated for loops for configuring the queues by
moving all the logic into a single for loop.

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
drivers/net/ethernet/intel/ice/ice_lib.h
drivers/net/ethernet/intel/ice/ice_virtchnl_pf.c