Thread (8 messages) 8 messages, 5 authors, 2026-01-16

Re: [PATCH] net: airoha_eth: increase max mtu to 9220 for DSA jumbo frames

From: Benjamin Larsson <hidden>
Date: 2026-01-16 10:48:48
Also in: linux-arm-kernel, linux-mediatek

Hi.

On 16/01/2026 02:08, Andrew Lunn wrote:
On Thu, Jan 15, 2026 at 08:10:20PM +0100, Benjamin Larsson wrote:
quoted
On 15/01/2026 18:41, Andrew Lunn wrote:
quoted
On Thu, Jan 15, 2026 at 02:18:37PM +0530, Sayantan Nandy wrote:
quoted
The Industry standard for jumbo frame MTU is 9216 bytes. When using DSA
sub-system, an extra 4 byte tag is added to each frame. To allow users
to set the standard 9216-byte MTU via ifconfig,increase AIROHA_MAX_MTU
to 9220 bytes (9216+4).
What does the hardware actually support? Is 9220 the real limit? 10K?
16K?

	Andrew
Hi, datasheets say 16k and I have observed packet sizes close to that on the
previous SoC generation EN7523 on the tx path.
Can you test 16K?
I probably can but it would take some time (weeks) as I dont have any 
current setup with AN7581.
Does it make any difference to the memory allocation? Some drivers
allocate receive buffers based on the MAX MTU, not the current MTU, so
can eat up a lot of memory which is unlikely to be used. We should try
to avoid that.

Thanks
	Andrew
Larger packets will consume more dma descriptors (a larger packet will 
be split into several dma descriptors). So you dont allocate more memory 
to be able to send jumbo frames.

MvH

Benjamin Larsson
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help