Re: [PATCH 2/5] net: dsa: b53: fix max MTU for 1g switches

From: Florian Fainelli
Date: Fri Oct 04 2024 - 23:39:01 EST




On 10/4/2024 1:47 AM, Jonas Gorski wrote:
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.

Only if you need to resubmit:

s/gigabyte swithes/gigabit switches/g


Fixes: 6ae5834b983a ("net: dsa: b53: add MTU configuration support")
Signed-off-by: Jonas Gorski <jonas.gorski@xxxxxxxxx>

Reviewed-by: Florian Fainelli <florian.fainelli@xxxxxxxxxxxx>
--
Florian