[PATCH net v2 2/2] net: stmmac: dwmac-sun8i: Limit the MTU to 2018

Maxime Chevallier maxime.chevallier at bootlin.com
Tue Nov 24 06:51:35 PST 2026


Hi,

On 11/22/26 17:31, Nicolai Buchwitz wrote:
> On 22.11.2026 12:39, Chen-Yu Tsai wrote:
>> [...]
> 
>> FWIW I think this applies to all DWMAC cores.
> 
>> [...]
> 
>> So for normal descriptors the buffer size is bound to (2KB - bus width).
>> Not tested, but I think there is more evidence supporting a cross-platform
>> limit.
> 
> The sun8i EMAC isn't a Synopsys core, so this needs a test on one.
> Maxime, could you try MTU 2019-2021 on your boards?

Sorry for the delay, I'm back with numbers :)

So on net-next, w/o this patch, I see:

 - dwmac-sunxi (Allwinner A20), the first MTU that fails is 2029 (so frame size is 2046 incl. FCS)
 - dwmac 3.70a (meson-g12a), first failing MTU is 2031
 - dwmac-sun8i (H2+), first failing MTU is 2025

The first two are ring mode, the last is chain mode.

This was all untagged traffic.

Maxime



More information about the linux-arm-kernel mailing list