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

Commit 2f3dcd0

Browse files
KanjiMonsterPaolo Abeni
authored andcommitted
net: dsa: b53: fix jumbo frames on 10/100 ports
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]>
1 parent e4b294f commit 2f3dcd0

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

22662266
enable_jumbo = (mtu > ETH_DATA_LEN);
2267-
allow_10_100 = (dev->chip_id == BCM583XX_DEVICE_ID);
2267+
allow_10_100 = !is63xx(dev);
22682268

22692269
return b53_set_jumbo(dev, enable_jumbo, allow_10_100);
22702270
}

0 commit comments

Comments
 (0)