Subject: Re: set mtu size broken for dwmac-sun8i

From: Corentin Labbe <[email-masked]>
Date: Wed, 17 Mar 2021 12:33:46 +0100

Le Wed, Mar 17, 2021 at 10:19:26AM +0100, Belisko Marek a écrit :
> Hi,
> 
> I'm hunting an issue when setting mtu failed for dwmac-sun8i driver.
> Basically adding more debug shows that in stmmac_change_mtu
> tx_fifo_size is 0 and in this case EINVAL is reported. Isaw there was
> fix for similar driver dwmac-sunxi driver by:
> 806fd188ce2a4f8b587e83e73c478e6484fbfa55
> 
> IIRC dwmac-sun8i should get tx and rx fifo size from dma but seems
> it's not the case. I'm using 5.4 kernel LTS release. Any ideas?
> 
> Thanks and BR,
> 
> marek
> 

Hello

Could you provide exact command line you tried to change mtu ?
Along with all MTU values you tried.

Thanks
Regards