[PATCH net v2 1/2] net: stmmac: Limit the MTU of normal descriptors to one buffer

Nicolai Buchwitz nb at tipi-net.de
Sun Nov 22 08:27:10 PST 2026


On 22.11.2026 10:13, Arun Iyengar via B4 Relay wrote:
> From: Arun Iyengar <aiyengar1990 at gmail.com>
> 
> Russell King noted in [1] that max_mtu for normal descriptors,
> SKB_MAX_HEAD() (3712 on arm64), does not match the hardware. Their
> buffer sizes are 11 bits, and stmmac neither splits TX frames nor joins
> RX descriptors for them, so a frame must fit one 2047-byte buffer.

AFAIU TX does split (jumbo_frm() in chain_mode.c).

This makes RX the real limit as ndesc_get_rx_status() drops a frame that
spans more than one descriptor. Please say that instead, it should also
answer Chen-Yu's question about hardware vs driver?

> 
> Limit max_mtu so that a frame with two VLAN tags and the FCS fits.
> 
> Link: 
> https://lore.kernel.org/r/E1vLJcL-0000000ExBL-0GFe@rmk-PC.armlinux.org.uk 
> [1]
> Fixes: 48febf7e6476 ("stmmac: allow mtu bigger than 1500 in case of 
> normal desc (V4)")
> Cc: Russell King <rmk+kernel at armlinux.org.uk>
> Cc: stable at vger.kernel.org
> Signed-off-by: Arun Iyengar <aiyengar1990 at gmail.com>

> [...]

Thanks,
Nicolai



More information about the linux-arm-kernel mailing list