net: dsa: mv88e6xxx: Use chip-wide max frame size for MTU
authorChris Packham <chris.packham@alliedtelesis.co.nz>
Thu, 23 Jul 2020 23:21:22 +0000 (11:21 +1200)
committerDavid S. Miller <davem@davemloft.net>
Sat, 25 Jul 2020 03:03:27 +0000 (20:03 -0700)
commit1baf0fac10fbe3084975d7cb0a4378eb18871482
treef84edf062292f1ded152fd31dd253ec1ad6098f2
parente8b34c67d6c10ee3f187469958af3fb36c9c3361
net: dsa: mv88e6xxx: Use chip-wide max frame size for MTU

Some of the chips in the mv88e6xxx family don't support jumbo
configuration per port. But they do have a chip-wide max frame size that
can be used. Use this to approximate the behaviour of configuring a port
based MTU.

Signed-off-by: Chris Packham <chris.packham@alliedtelesis.co.nz>
Reviewed-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
drivers/net/dsa/mv88e6xxx/global1.c
drivers/net/dsa/mv88e6xxx/global1.h