Skip to content
This repository was archived by the owner on Nov 8, 2023. It is now read-only.

Commit ca57186

Browse files
KanjiMonstergregkh
authored andcommitted
net: dsa: b53: fix jumbo frames on 10/100 ports
[ Upstream commit 2f3dcd0 ] 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: 6ae5834 ("net: dsa: b53: add MTU configuration support") Signed-off-by: Jonas Gorski <[email protected]> Reviewed-by: Florian Fainelli <[email protected]> Signed-off-by: Paolo Abeni <[email protected]> Signed-off-by: Sasha Levin <[email protected]>
1 parent dd5b3a8 commit ca57186

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
@@ -2273,7 +2273,7 @@ static int b53_change_mtu(struct dsa_switch *ds, int port, int mtu)
22732273
return 0;
22742274

22752275
enable_jumbo = (mtu > ETH_DATA_LEN);
2276-
allow_10_100 = (dev->chip_id == BCM583XX_DEVICE_ID);
2276+
allow_10_100 = !is63xx(dev);
22772277

22782278
return b53_set_jumbo(dev, enable_jumbo, allow_10_100);
22792279
}

0 commit comments

Comments
 (0)