Skip to content

Commit dd5b3a8

Browse files
KanjiMonstergregkh
authored andcommitted
net: dsa: b53: allow lower MTUs on BCM5325/5365
[ Upstream commit e4b294f ] While BCM5325/5365 do not support jumbo frames, they do support slightly oversized frames, so do not error out if requesting a supported MTU for them. Fixes: 6ae5834 ("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>
1 parent 94c4cb9 commit dd5b3a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/dsa/b53/b53_common.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2267,7 +2267,7 @@ static int b53_change_mtu(struct dsa_switch *ds, int port, int mtu)
22672267
bool allow_10_100;
22682268

22692269
if (is5325(dev) || is5365(dev))
2270-
return -EOPNOTSUPP;
2270+
return 0;
22712271

22722272
if (!dsa_is_cpu_port(ds, port))
22732273
return 0;

0 commit comments

Comments
 (0)