netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net 0/3] MTU fixes for mv88e6xxx
@ 2021-05-24 21:33 Andrew Lunn
  2021-05-24 21:33 ` [PATCH net 1/3] dsa: mv88e6xxx: 6161: Use chip wide MAX MTU Andrew Lunn
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Andrew Lunn @ 2021-05-24 21:33 UTC (permalink / raw)
  To: David Miller, Jakub Kicinski
  Cc: netdev, Florian Fainelli, Vladimir Oltean, cao88yu, Andrew Lunn

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(-)

-- 
2.31.1


^ permalink raw reply	[flat|nested] 9+ messages in thread
* [PATCH net 0/3] mv88e6xxx: MTU fixes
@ 2021-09-26 17:41 Andrew Lunn
  2021-09-26 17:41 ` [PATCH net 2/3] dsa: mv88e6xxx: Fix MTU definition Andrew Lunn
  0 siblings, 1 reply; 9+ messages in thread
From: Andrew Lunn @ 2021-09-26 17:41 UTC (permalink / raw)
  To: netdev; +Cc: cao88yu, Florian Fainelli, Vladimir Oltean, Andrew Lunn

These three patches fix MTU issues reported by 曹煜.

There are two different ways of configuring the MTU in the hardware.
The 6161 family is using the wrong method. Some of the marvell switch
enforce the MTU when the port is used for CPU/DSA, some don't.
Because of the extra header, the MTU needs increasing with this
overhead.

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

 drivers/net/dsa/mv88e6xxx/chip.c    | 17 ++++++++++-------
 drivers/net/dsa/mv88e6xxx/chip.h    |  1 +
 drivers/net/dsa/mv88e6xxx/global1.c |  2 ++
 drivers/net/dsa/mv88e6xxx/port.c    |  2 ++
 4 files changed, 15 insertions(+), 7 deletions(-)

-- 
2.33.0


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2021-09-26 17:58 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-05-24 21:33 [PATCH net 0/3] MTU fixes for mv88e6xxx Andrew Lunn
2021-05-24 21:33 ` [PATCH net 1/3] dsa: mv88e6xxx: 6161: Use chip wide MAX MTU Andrew Lunn
2021-05-24 21:33 ` [PATCH net 2/3] dsa: mv88e6xxx: Fix MTU definition Andrew Lunn
2021-05-24 21:54   ` Vladimir Oltean
2021-05-24 21:33 ` [PATCH net 3/3] net: dsa: Include tagger overhead when setting MTU for DSA and CPU ports Andrew Lunn
2021-05-24 22:04   ` Vladimir Oltean
2021-05-25  2:53     ` Andrew Lunn
2021-05-25  9:10       ` Vladimir Oltean
  -- strict thread matches above, loose matches on Subject: below --
2021-09-26 17:41 [PATCH net 0/3] mv88e6xxx: MTU fixes Andrew Lunn
2021-09-26 17:41 ` [PATCH net 2/3] dsa: mv88e6xxx: Fix MTU definition Andrew Lunn

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).