ice: Fix configuring VIRTCHNL_OP_CONFIG_VSI_QUEUES with unbalanced queues
authorMarcin Szycik <marcin.szycik@linux.intel.com>
Mon, 7 Nov 2022 16:10:38 +0000 (17:10 +0100)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Wed, 23 Nov 2022 16:59:43 +0000 (08:59 -0800)
commitc7cb9dfc57a2aff7a7f270c883cbe0f5cd3f68e1
treec20b63b6f59f62d378e85216dec1b17a42e28b2f
parent288ecf491b1654845ae99c79b7fefad2d3ea47bd
ice: Fix configuring VIRTCHNL_OP_CONFIG_VSI_QUEUES with unbalanced queues

Currently the VIRTCHNL_OP_CONFIG_VSI_QUEUES command may fail if there are
less RX queues than TX queues requested.

To fix it, only configure RXDID if RX queue exists.

Fixes: e753df8fbca5 ("ice: Add support Flex RXD")
Signed-off-by: Marcin Szycik <marcin.szycik@linux.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_virtchnl.c