linux/drivers/net/dsa/b53
Martin Willi c5118072e2 net: dsa: b53: Limit chip-wide jumbo frame config to CPU ports
Broadcom switches supported by the b53 driver use a chip-wide jumbo frame
configuration. In the commit referenced with the Fixes tag, the setting
is applied just for the last port changing its MTU.

While configuring CPU ports accounts for tagger overhead, user ports do
not. When setting the MTU for a user port, the chip-wide setting is
reduced to not include the tagger overhead, resulting in an potentially
insufficient chip-wide maximum frame size for the CPU port.

As, by design, the CPU port MTU is adjusted for any user port change,
apply the chip-wide setting only for CPU ports. This aligns the driver
to the behavior of other switch drivers.

Fixes: 6ae5834b98 ("net: dsa: b53: add MTU configuration support")
Suggested-by: Vladimir Oltean <olteanv@gmail.com>
Signed-off-by: Martin Willi <martin@strongswan.org>
Reviewed-by: Vladimir Oltean <olteanv@gmail.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
2024-07-18 13:09:12 +02:00
..
b53_common.c net: dsa: b53: Limit chip-wide jumbo frame config to CPU ports 2024-07-18 13:09:12 +02:00
b53_mdio.c net: dsa: Use conduit and user terms 2023-10-24 13:08:14 -07:00
b53_mmap.c net: dsa: b53: Convert to platform remove callback returning void 2023-09-20 10:25:57 +01:00
b53_priv.h net: dsa: b53: Stop exporting b53_phylink_* routines 2024-04-25 11:46:37 -07:00
b53_regs.h net: dsa: b53: add BCM63268 RGMII configuration 2023-03-22 21:38:04 -07:00
b53_serdes.c net: dsa: use capital "OR" for multiple licenses in SPDX 2023-08-24 12:02:53 -07:00
b53_serdes.h net: dsa: use capital "OR" for multiple licenses in SPDX 2023-08-24 12:02:53 -07:00
b53_spi.c net: dsa: b53: remove unnecessary spi_set_drvdata() 2022-07-06 19:49:59 -07:00
b53_srab.c net: dsa: b53: Convert to platform remove callback returning void 2023-09-20 10:25:57 +01:00
Kconfig net: dsa: modularize DSA_TAG_PROTO_NONE 2022-11-22 20:41:45 -08:00
Makefile net: dsa: b53: Add SerDes support 2018-09-06 07:48:34 -07:00