From patchwork Fri Feb 17 10:50:17 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michal Swiatkowski X-Patchwork-Id: 13144537 X-Patchwork-Delegate: kuba@kernel.org Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2C91DC64EC4 for ; Fri, 17 Feb 2023 11:08:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229928AbjBQLIb (ORCPT ); Fri, 17 Feb 2023 06:08:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44994 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229970AbjBQLIJ (ORCPT ); Fri, 17 Feb 2023 06:08:09 -0500 Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 85DE85B75B for ; Fri, 17 Feb 2023 03:07:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1676632066; x=1708168066; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=FXlizv0AbHk0WG3hx2Ag3u/2UpnWpDsyVSAhEf9y++4=; b=nEpR5nezqlDPGKcUNEWRZzFhca/Lh3eRputwQp1OLY89J3NCeUouBsmM R8r3f0djjIdT+Om757PkIUNK0FDwEewOFvF2aReI37NR8pCLXzvErykYG xxY0/uvGFtD+Y4QVnB01SDTleFeBSM6dF7wSoo9lgoKrOmQsVKerPfw0w iTipCGwYImBPohdwkPLWPdbqFM+zvV7BRLhvyV0zx20Po10pDSuQc95u9 zQ5ftbbMqKeUg+dnJAvGQweFJyXGzjvL7HjPuO0ONI6uhR8kMICeSSDF/ 0dBW9EvK+xsNtvyFh67ejYiUJVLKI1J+t+XOTb5Y5/ztnH4+CkqDLD0h1 w==; X-IronPort-AV: E=McAfee;i="6500,9779,10623"; a="333323320" X-IronPort-AV: E=Sophos;i="5.97,304,1669104000"; d="scan'208";a="333323320" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Feb 2023 03:07:15 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10623"; a="844538024" X-IronPort-AV: E=Sophos;i="5.97,304,1669104000"; d="scan'208";a="844538024" Received: from wasp.igk.intel.com ([10.102.20.192]) by orsmga005.jf.intel.com with ESMTP; 17 Feb 2023 03:07:12 -0800 From: Michal Swiatkowski To: netdev@vger.kernel.org Cc: kuba@kernel.org, davem@davemloft.net, edumazet@google.com, pabeni@redhat.com, anthony.l.nguyen@intel.com, Michal Swiatkowski , Maciej Fijalkowski Subject: [PATCH net-next v1] ice: properly alloc ICE_VSI_LB Date: Fri, 17 Feb 2023 11:50:17 +0100 Message-Id: <20230217105017.21057-1-michal.swiatkowski@linux.intel.com> X-Mailer: git-send-email 2.36.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@kernel.org 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 Acked-by: Maciej Fijalkowski Signed-off-by: Michal Swiatkowski Reviewed-by: Alexander Lobakin --- drivers/net/ethernet/intel/ice/ice_lib.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/ethernet/intel/ice/ice_lib.c b/drivers/net/ethernet/intel/ice/ice_lib.c index 5e81f7ae252c..3c41ebfc23d8 100644 --- a/drivers/net/ethernet/intel/ice/ice_lib.c +++ b/drivers/net/ethernet/intel/ice/ice_lib.c @@ -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);