From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E6B4B3806D9; Thu, 30 Jul 2026 15:39:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785425945; cv=none; b=ZJYFypoTpFilfjNJtgABVSHHwOHhZoEyZVNv04zPcdSS/JCFKG6LI8u+PcIV8bL/H+ylOEAS3CFjUa38/vQ4/c9iw/z9GE7I/5UDz8dEfMZ+4JoANHHv4l2aBz8SQp4ZBThL0bD0teYuEJnx7dZV+Qwp3p1rouF1LqyGSJT+374= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785425945; c=relaxed/simple; bh=TeadOadK0kkBYrJEoj616zv0SYtpXOaJ0QDO0WkYqYE=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=AL98fGdrc7izCZjKAcz8qGvfC2CUlua/VixoDhjuHba/+KMlJqsLUVcOUcdsAMlIiXAZFKzmRu0q5N3JBFqQscjuVWSkwmxgferkuMUKpUk7SmcyBOSorNCqzEAaQkUizq4NQPx0AB1Pv34Ng/XIP7REb/mxAsABoYIRBd0/eKE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=nSNBtq0Q; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="nSNBtq0Q" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 135D71F000E9; Thu, 30 Jul 2026 15:39:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1785425943; bh=3A9m0Htczj4TyFfEP2MoMMyB6Z1bEGsF0w+zZxGeaow=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=nSNBtq0QCN5ETW++o2nefJJY3qs+jHI6VME2l3IxipcYc+Xi6NVbOsGJG4tX9CtbM v/qGrEFQIipLrSC3t2Puy6YO8Wz+LOtkADkY3gcwHtX9TSYdrCIUhmF0nn3qYT3ios W2sgyVe8OcMDFpCc7k7s4FQkq/poRAIKb8REVbmo= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Marcin Szycik , Michal Swiatkowski , Aleksandr Loktionov , Dave Ertman , Simon Horman , Tony Nguyen , Jakub Kicinski , Sasha Levin , Rinitha S Subject: [PATCH 6.12 247/602] ice: fix LAG recipe to profile association Date: Thu, 30 Jul 2026 16:10:39 +0200 Message-ID: <20260730141441.162042482@linuxfoundation.org> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260730141435.976815864@linuxfoundation.org> References: <20260730141435.976815864@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.12-stable review patch. If anyone has any objections, please let me know. ------------------ From: Marcin Szycik [ Upstream commit d6da9b7d48599db078aea6144997a381f8d90d45 ] ice_init_lag() associates recipes to profiles, assuming that Link Aggregation-related profiles will always have profile ID lower than 70 (ICE_PROFID_IPV6_GTPU_IPV6_TCP_INNER). This value seems arbitrary and might not always be valid for some versions of DDP package, i.e. LAG profiles may have profile ID greater than 70. This would lead to misconfigured switch and LAG not working properly. Fix it by checking up to maximum profile ID. Fixes: 1e0f9881ef79 ("ice: Flesh out implementation of support for SRIOV on bonded interface") Signed-off-by: Marcin Szycik Reviewed-by: Michal Swiatkowski Reviewed-by: Aleksandr Loktionov Reviewed-by: Dave Ertman Reviewed-by: Simon Horman Tested-by: Rinitha S (A Contingent worker at Intel) Signed-off-by: Tony Nguyen Link: https://patch.msgid.link/20260717185340.3595286-7-anthony.l.nguyen@intel.com Signed-off-by: Jakub Kicinski Signed-off-by: Sasha Levin --- drivers/net/ethernet/intel/ice/ice_lag.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/intel/ice/ice_lag.c b/drivers/net/ethernet/intel/ice/ice_lag.c index d132eb4775513c..da1cd103a4d905 100644 --- a/drivers/net/ethernet/intel/ice/ice_lag.c +++ b/drivers/net/ethernet/intel/ice/ice_lag.c @@ -2095,7 +2095,7 @@ int ice_init_lag(struct ice_pf *pf) goto free_rcp_res; /* associate recipes to profiles */ - for (n = 0; n < ICE_PROFID_IPV6_GTPU_IPV6_TCP_INNER; n++) { + for (n = 0; n < ICE_MAX_NUM_PROFILES; n++) { err = ice_aq_get_recipe_to_profile(&pf->hw, n, &recipe_bits, NULL); if (err) -- 2.53.0