]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: lantiq_gswip: enable jumbo frames on GSWIP
authorAleksander Jan Bajkowski <olek2@wp.pl>
Tue, 8 Mar 2022 23:04:57 +0000 (00:04 +0100)
committerJakub Kicinski <kuba@kernel.org>
Fri, 11 Mar 2022 04:14:23 +0000 (20:14 -0800)
commit7643a22340edcc26ddd163fbcf916fbf50ee643b
tree9a216dbbd6ab9fc98dc90ccaa9bd09ebc788e63b
parent03e63c822112b4a6584f52852530721887a0467d
net: dsa: lantiq_gswip: enable jumbo frames on GSWIP

This enables non-standard MTUs on a per-port basis, with the overall
frame size set based on the CPU port.

When the MTU is not changed, this should have no effect.

Long packets crash the switch with MTUs of greater than 2526, so the
maximum is limited for now. Medium packets are sometimes dropped (e.g.
TCP over 2477, UDP over 2516-2519, ICMP over 2526), Hence an MTU value
of 2400 seems safe.

Signed-off-by: Thomas Nixon <tom@tomn.co.uk>
Signed-off-by: Aleksander Jan Bajkowski <olek2@wp.pl>
Link: https://lore.kernel.org/r/20220308230457.1599237-1-olek2@wp.pl
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/dsa/lantiq_gswip.c