linux/drivers/net/dsa/microchip
Oleksij Rempel e18058ea99 net: dsa: microchip: ksz9477: implement MTU configuration
This chips supports two ways to configure max MTU size:
- by setting SW_LEGAL_PACKET_DISABLE bit: if this bit is 0 allowed packed size
  will be between 64 and bytes 1518. If this bit is 1, it will accept
  packets up to 2000 bytes.
- by setting SW_JUMBO_PACKET bit. If this bit is set, the chip will
  ignore SW_LEGAL_PACKET_DISABLE value and use REG_SW_MTU__2 register to
  configure MTU size.

Current driver has disabled SW_JUMBO_PACKET bit and activates
SW_LEGAL_PACKET_DISABLE. So the switch will pass all packets up to 2000 without
any way to configure it.

By providing port_change_mtu we are switch to SW_JUMBO_PACKET way and will
be able to configure MTU up to ~9000.

Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
Reviewed-by: Vladimir Oltean <olteanv@gmail.com>
Link: https://lore.kernel.org/r/20220308135857.1119028-1-o.rempel@pengutronix.de
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2022-03-09 19:47:18 -08:00
..
Kconfig net: dsa: microchip: Add Microchip KSZ8863 SMI based driver support 2021-04-27 14:13:24 -07:00
ksz8.h net: dsa: microchip: ksz8795: move register offsets and shifts to separate struct 2021-04-27 14:13:23 -07:00
ksz8795_reg.h net: dsa: microchip: ksz8795: Fix PVID tag insertion 2021-08-10 09:58:14 +01:00
ksz8795_spi.c spi: make remove callback a void function 2022-02-09 13:00:45 +00:00
ksz8795.c net: dsa: ksz8795: convert to phylink_generic_validate() 2022-02-03 11:47:06 +00:00
ksz8863_smi.c net: dsa: microchip: ksz8863: be compatible with masters which unregister on shutdown 2021-09-19 12:08:37 +01:00
ksz9477_i2c.c net: dsa: microchip: add ksz8563 to ksz9477 I2C driver 2022-02-19 18:56:03 +00:00
ksz9477_reg.h net: dsa: microchip: ksz9477: implement MTU configuration 2022-03-09 19:47:18 -08:00
ksz9477_spi.c spi: make remove callback a void function 2022-02-09 13:00:45 +00:00
ksz9477.c net: dsa: microchip: ksz9477: implement MTU configuration 2022-03-09 19:47:18 -08:00
ksz_common.c net: dsa: pass extack to .port_bridge_join driver methods 2022-02-27 11:06:14 +00:00
ksz_common.h net: dsa: microchip: ksz9477: implement MTU configuration 2022-03-09 19:47:18 -08:00
Makefile net: dsa: microchip: Add Microchip KSZ8863 SMI based driver support 2021-04-27 14:13:24 -07:00