mbox series

[net,0/3] MTU fixes for mv88e6xxx

Message ID 20210524213313.1437891-1-andrew@lunn.ch (mailing list archive)
Headers show
Series MTU fixes for mv88e6xxx | expand

Message

Andrew Lunn May 24, 2021, 9:33 p.m. UTC
Adding support for jumbo packets broke MTU change for a couple of
mv88e6xxx family members. The wrong way of configuring the MTU was
used for 6161, and a mixup between MTU and frame size broke other
devices. Additionally, when changing the MTU on the CPU port, the DSA
overhead needs to be taken into account.

Thanks to 曹煜 for reporting and helping debugging these problems.

Andrew Lunn (3):
  dsa: mv88e6xxx: 6161: Use chip wide MAX MTU
  dsa: mv88e6xxx: Fix MTU definition
  net: dsa: Include tagger overhead when setting MTU for DSA and CPU
    ports

 drivers/net/dsa/mv88e6xxx/chip.c | 14 +++++++-------
 drivers/net/dsa/mv88e6xxx/port.c |  2 ++
 net/dsa/switch.c                 | 16 ++++++++++++++--
 3 files changed, 23 insertions(+), 9 deletions(-)