From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 4F1481EABD2; Tue, 15 Oct 2024 12:10:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728994217; cv=none; b=nxTlnSZIsRpEPD79uKestmcK8AFQatgvoq3vmwlMnn67zJ1yj2cpxMzEMBvEiDjG+1w7sMH5AFSuemmoCHfk6JDkkIENQlgauq/3hGT2RAJyZwHjywqMlpE8BaX0KvhWE9kozLpzGWZ2QVJMcocUmBNjs85WVnCTcvAl61s4ozE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728994217; c=relaxed/simple; bh=FGhnTVw/KjAwNdSuZZaW2RDDs7zDTtkVDxt4FvALBi0=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=ek83V4f4EO/klGgOYgI+KwkPPU6oiKA/KZhya2ooK7EdndjAi2aiLN1qXMOfmg8tIEFQ04krIk9J7Vhpqh0quOLVfTpInXjuiAdwr313ABvV50cEOEEoL4KVPPLGgikL4eAIBrwOkYr5jhvKqv6Q7N2efxKtRbyJWB4w4m9MnuI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=0QPUib89; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="0QPUib89" Received: by smtp.kernel.org (Postfix) with ESMTPSA id B295EC4CEC6; Tue, 15 Oct 2024 12:10:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1728994217; bh=FGhnTVw/KjAwNdSuZZaW2RDDs7zDTtkVDxt4FvALBi0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=0QPUib89fUKA5mKhdincyTl1c1q2nvA3Wef/0gi3T490MID3txLOaxdl1pXv1YXpU L5rfc89hJbfkBB7SlJlldXxNiMvOFMVDQsgFDWUvo6IQ4vFgKSJfMMRHLNupqZVeT5 JCZC7du1GUcWkUkBoMOSqKDLenww2+DxhSknVOjo= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Jonas Gorski , Florian Fainelli , Paolo Abeni , Sasha Levin Subject: [PATCH 5.15 640/691] net: dsa: b53: fix jumbo frames on 10/100 ports Date: Tue, 15 Oct 2024 13:29:48 +0200 Message-ID: <20241015112505.728489319@linuxfoundation.org> X-Mailer: git-send-email 2.47.0 In-Reply-To: <20241015112440.309539031@linuxfoundation.org> References: <20241015112440.309539031@linuxfoundation.org> User-Agent: quilt/0.67 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 5.15-stable review patch. If anyone has any objections, please let me know. ------------------ From: Jonas Gorski [ Upstream commit 2f3dcd0d39affe5b9ba1c351ce0e270c8bdd5109 ] All modern chips support and need the 10_100 bit set for supporting jumbo frames on 10/100 ports, so instead of enabling it only for 583XX enable it for everything except bcm63xx, where the bit is writeable, but does nothing. Tested on BCM53115, where jumbo frames were dropped at 10/100 speeds without the bit set. Fixes: 6ae5834b983a ("net: dsa: b53: add MTU configuration support") Signed-off-by: Jonas Gorski Reviewed-by: Florian Fainelli Signed-off-by: Paolo Abeni Signed-off-by: Sasha Levin --- drivers/net/dsa/b53/b53_common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/dsa/b53/b53_common.c b/drivers/net/dsa/b53/b53_common.c index cc030f8789053..df67262c30924 100644 --- a/drivers/net/dsa/b53/b53_common.c +++ b/drivers/net/dsa/b53/b53_common.c @@ -2231,7 +2231,7 @@ static int b53_change_mtu(struct dsa_switch *ds, int port, int mtu) return 0; enable_jumbo = (mtu > ETH_DATA_LEN); - allow_10_100 = (dev->chip_id == BCM583XX_DEVICE_ID); + allow_10_100 = !is63xx(dev); return b53_set_jumbo(dev, enable_jumbo, allow_10_100); } -- 2.43.0