Re: [PATCH net-next v9 0/2] net: ethernet: mtk_eth_soc: 9K jumbo frame support

From: Sandeep Haemoon

Date: Wed Dec 02 2026 - 14:15:45 EST


Hi Frank,

Thanks for the review and for the pointer.

On Tue, Dec 01, 2026 at 08:12:31AM +0100, Frank Wunderlich wrote:
> Sounds like it is still needed to bring down macs like in SDK to
> increase MTU or always use 9K on mac/dma layer. See below comment for
> possible solution.

Right: in this series a runtime increase is rejected with -EBUSY while
DMA is running, and the interface has to be taken down and up (or the
MTU set while it is closed); shrinking works live because the rings
keep their larger buffers. Always using 9K buffers was considered and
not taken: at MTU 1500 it would pin about 32 MiB in the polled ring
(plus the QDMA ring) and turn every refill into a high-order GFP_ATOMIC
allocation.

> Have you seen Mihai Ordean change to prevent the needed down-up
> configuration of MACs needed by SDK code?
> https://github.com/frank-w/BPI-Router-Linux/commit/f2d6ce7925c7111e2241a88c9158c15aa97d4452

No, I had not seen it - thank you, that is exactly the follow-up this
series leaves out. It builds on Mason's netdev restart work and
dynamic rx buffer adjustment, which are in your tree but not upstream
yet, so the natural order is to get that machinery in first and then
the ring stop/start reallocation on top.

Is that something you and Mihai plan to submit upstream? I would
rather coordinate than duplicate it; the -EBUSY rule in this series can
go away once the reallocation is upstream.

> Do you need to bring down macs when changing (increasing) the mtu?

Yes, in this series: the rings cannot be resized in place while DMA is
running, so an increase returns -EBUSY until the netdev is reopened.
A decrease is accepted live and the MAC limits are narrowed to match.