]> git.baikalelectronics.ru Git - kernel.git/commit
dsa: mv88e6xxx: Include tagger overhead when setting MTU for DSA and CPU ports
authorAndrew Lunn <andrew@lunn.ch>
Sun, 26 Sep 2021 17:41:26 +0000 (19:41 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 27 Sep 2021 12:31:10 +0000 (13:31 +0100)
commit26ace1c775e8862bb5403098a7d35803bcc6a143
tree91ef25b82a747d4b543315412100a150169b6844
parent6c87e8d3c06c43eca8904b526d560e8e35d05f80
dsa: mv88e6xxx: Include tagger overhead when setting MTU for DSA and CPU ports

Same members of the Marvell Ethernet switches impose MTU restrictions
on ports used for connecting to the CPU or another switch for DSA. If
the MTU is set too low, tagged frames will be discarded. Ensure the
worst case tagger overhead is included in setting the MTU for DSA and
CPU ports.

Fixes: bf90e25f24c4 ("net: dsa: mv88e6xxx: Use chip-wide max frame size for MTU")
Reported by: 曹煜 <cao88yu@gmail.com>
Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/mv88e6xxx/chip.c
drivers/net/dsa/mv88e6xxx/chip.h