]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net: dsa: b53: fix max MTU for BCM5325/BCM5365
authorJonas Gorski <jonas.gorski@gmail.com>
Fri, 4 Oct 2024 08:47:19 +0000 (10:47 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 17 Oct 2024 13:11:55 +0000 (15:11 +0200)
commit94a40349914bbd0252cebf034f43fb995e1a1e35
treeb24ee84c670cfd1a60450da35cea9bb419742d35
parent7b444a8d8f4b85efab951dab187af72db5a9d89e
net: dsa: b53: fix max MTU for BCM5325/BCM5365

[ Upstream commit ca8c1f71c10193c270f772d70d34b15ad765d6a8 ]

BCM5325/BCM5365 do not support jumbo frames, so we should not report a
jumbo frame mtu for them. But they do support so called "oversized"
frames up to 1536 bytes long by default, so report an appropriate MTU.

Fixes: 6ae5834b983a ("net: dsa: b53: add MTU configuration support")
Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
Reviewed-by: Florian Fainelli <florian.fainelli@broadcom.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/dsa/b53/b53_common.c