]> www.infradead.org Git - users/hch/configfs.git/commit
net: dsa: b53: fix max MTU for 1g switches
authorJonas Gorski <jonas.gorski@gmail.com>
Fri, 4 Oct 2024 08:47:18 +0000 (10:47 +0200)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 8 Oct 2024 08:42:27 +0000 (10:42 +0200)
commit680a8217dc00dc7e7da57888b3c053289b60eb2b
tree9e280206dcb89be93ddbcd37f523b6edefd43a4a
parent42fb3acf6826c6764ba79feb6e15229b43fd2f9f
net: dsa: b53: fix max MTU for 1g switches

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>
drivers/net/dsa/b53/b53_common.c