linux-imx/drivers/net/dsa/b53
Martin Willi 967879893c net: dsa: b53: Limit chip-wide jumbo frame config to CPU ports
[ Upstream commit c5118072e2 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-08-03 08:54:05 +02:00
..
b53_common.c net: dsa: b53: Limit chip-wide jumbo frame config to CPU ports 2024-08-03 08:54:05 +02:00
b53_mdio.c net: dsa: Explicitly include correct DT includes 2023-07-26 21:54:16 -07:00
b53_mmap.c net: dsa: Explicitly include correct DT includes 2023-07-26 21:54:16 -07:00
b53_priv.h net: dsa: b53: mdio: add support for BCM53134 2023-03-27 08:29:54 +01: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
b53_srab.c net: dsa: b53: remove unnecessary set_drvdata() 2022-09-22 19:30:34 -07:00
Kconfig net: dsa: modularize DSA_TAG_PROTO_NONE 2022-11-22 20:41:45 -08:00
Makefile