net: dsa: vsc73xx: fix MTU configuration
authorPawel Dembicki <paweldembicki@gmail.com>
Wed, 28 Jun 2023 19:43:27 +0000 (21:43 +0200)
committerJakub Kicinski <kuba@kernel.org>
Fri, 30 Jun 2023 00:33:36 +0000 (17:33 -0700)
commit3cf62c8177adb0db9e15c8b898c44f997acf3ebf
treedc729b688d51ab4d1e4919a34e4a963aee1d5c4c
parent48538ccb825b05544ec308a509e2cc9c013402db
net: dsa: vsc73xx: fix MTU configuration

Switch in MAXLEN register stores the maximum size of a data frame.
The MTU size is 18 bytes smaller than the frame size.

The current settings are causing problems with packet forwarding.
This patch fixes the MTU settings to proper values.

Fixes: fb77ffc6ec86 ("net: dsa: vsc73xx: make the MTU configurable")
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Pawel Dembicki <paweldembicki@gmail.com>
Reviewed-by: Vladimir Oltean <olteanv@gmail.com>
Link: https://lore.kernel.org/r/20230628194327.1765644-1-paweldembicki@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/dsa/vitesse-vsc73xx-core.c