ice: properly alloc ICE_VSI_LB
authorMichal Swiatkowski <michal.swiatkowski@linux.intel.com>
Fri, 17 Feb 2023 10:50:17 +0000 (11:50 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 20 Feb 2023 10:47:34 +0000 (10:47 +0000)
Devlink reload patchset introduced regression. ICE_VSI_LB wasn't
taken into account when doing default allocation. Fix it by adding a
case for ICE_VSI_LB in ice_vsi_alloc_def().

Fixes: 6624e780a577 ("ice: split ice_vsi_setup into smaller functions")
Reported-by: Maciej Fijalkowski <maciej.fijalkowski@intel.com>
Acked-by: Maciej Fijalkowski <maciej.fijalkowski@intel.com>
Signed-off-by: Michal Swiatkowski <michal.swiatkowski@linux.intel.com>
Reviewed-by: Alexander Lobakin <aleksander.lobakin@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/intel/ice/ice_lib.c

index 8cfc30fc9840302dd4bceaf32f837a61d10fb07c..781475480ff2700762b0ab1ce2da2b9c6dac4553 100644 (file)
@@ -627,6 +627,7 @@ ice_vsi_alloc_def(struct ice_vsi *vsi, struct ice_channel *ch)
                vsi->next_base_q = ch->base_q;
                break;
        case ICE_VSI_VF:
+       case ICE_VSI_LB:
                break;
        default:
                ice_vsi_free_arrays(vsi);