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 73D83431488; Thu, 30 Jul 2026 14:35:52 +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=1785422154; cv=none; b=ZdDyf+DffRttTn3SCj//KQQNPCSjhBwljEYqk77GMgyXygDmEb1MkHrS8NGBg4OoRCEemcLselRyfi4d5l7NLvOkW+mlVyZGTeEbgqWXKCy/SbspwZzU3WO1enktWs64TkB3oCZfJsPIFQq0CQnlLS+kYDDq70iM3gtNC789uHs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785422154; c=relaxed/simple; bh=f2Icz+w6c0HuwDiyvjhiG6Gr1DlvT4rn4vur2Cd9aDM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=j8tQEgs0UtsRwaAwjiWLAKGUv/+Rm6hjjjnuTwwOyDhumbqv/fG2rwWVHkKqjEFxMLrR3vVsQSaG/bI4mnw/sy9lpqwn0gJOWEnYDYUmgJ+J8Odzuln3Nl5Xc2oXb6JMqjIv7iz3waI5G+fn9D54hsndAkY10PUDi8smdt8WLDM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=TnxsnHL9; 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="TnxsnHL9" Received: by smtp.kernel.org (Postfix) with ESMTPSA id DC2CA1F000E9; Thu, 30 Jul 2026 14:35:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1785422151; bh=SgrGR7AupU/n7hHoOVcKPNiPpiQmyILAd8OHySfYoh4=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=TnxsnHL9ChqPd79SoMzIOPshU6+C8RA4b+deG0MKRIf9/16dRCgYwNWbsykIbNByt qyMc1tUd0Rd/mgUKV3U2zh4nNIws3luhoYWhI1eM2MjKSUctP58ne+5cUwKZIeOswJ LPSsofpDNhVnWlNqvSNUMzvT9Q6WCywAeiYUNJiQ= 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 7.1 342/744] ice: fix LAG recipe to profile association Date: Thu, 30 Jul 2026 16:10:15 +0200 Message-ID: <20260730141451.550058511@linuxfoundation.org> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260730141444.267951807@linuxfoundation.org> References: <20260730141444.267951807@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 7.1-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 310e8fe2925c7d..08a17ded0ad556 100644 --- a/drivers/net/ethernet/intel/ice/ice_lag.c +++ b/drivers/net/ethernet/intel/ice/ice_lag.c @@ -2623,7 +2623,7 @@ int ice_init_lag(struct ice_pf *pf) goto free_lport_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