Re: [PATCH net V2] net: stmmac: dwmac-loongson: Set correct {tx,rx}_fifo_size

From: Jakub Kicinski
Date: Wed Feb 12 2025 - 23:06:24 EST


On Mon, 10 Feb 2025 21:43:28 +0800 Huacai Chen wrote:
> Now for dwmac-loongson {tx,rx}_fifo_size are uninitialised, which means
> zero. This means dwmac-loongson doesn't support changing MTU because in
> stmmac_change_mtu() it requires the fifo size be no less than MTU. Thus,
> set the correct tx_fifo_size and rx_fifo_size for it (16KB multiplied by
> queue counts).

Not all drivers support changing MTU. Supporting jumbo frames
is a feature, so this commit enables the use of a feature.
As such it is not a fix. I'm applying this to net-next.