kernel_samsung_a53x/drivers/net/dsa/b53
Jonas Gorski dd0861a3a4 net: dsa: b53: fix max MTU for 1g switches
[ Upstream commit 680a8217dc00dc7e7da57888b3c053289b60eb2b ]

JMS_MAX_SIZE is the ethernet frame length, not the MTU, which is payload
without ethernet headers.

According to the datasheets maximum supported frame length for most
gigabyte swithes is 9720 bytes, so convert that to the expected MTU when
using VLAN tagged frames.

Fixes: 6ae5834b983a ("net: dsa: b53: add MTU configuration support")
Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
Reviewed-by: Florian Fainelli <florian.fainelli@broadcom.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-11-23 23:21:51 +01:00
..
b53_common.c net: dsa: b53: fix max MTU for 1g switches 2024-11-23 23:21:51 +01:00
b53_mdio.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
b53_mmap.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
b53_priv.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
b53_regs.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
b53_serdes.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
b53_serdes.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
b53_spi.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
b53_srab.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Kconfig Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00