From: Sandeep Haemoon <sandeeph@loljews.com>
To: Frank Wunderlich <frank-w@public-files.de>
Cc: netdev@vger.kernel.org
Cc: linux-mediatek@lists.infradead.org
Cc: linux-arm-kernel@lists.infradead.org
Cc: linux-kernel@vger.kernel.org
Cc: Felix Fietkau <nbd@nbd.name>
Cc: Lorenzo Bianconi <lorenzo@kernel.org>
Cc: Daniel Golle <daniel@makrotopia.org>
Subject: Re: [PATCH net-next v9 0/2] net: ethernet: mtk_eth_soc: 9K jumbo frame support
Date: Wed, 02 Dec 2026 21:15:25 +0200 [thread overview]
Message-ID: <reply-5019282b56da7ef440b9831f64403510@loljews.com> (raw)
In-Reply-To: <7B3495E1-AF06-42B3-BB62-20EBEB88727F@public-files.de>
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.
prev parent reply other threads:[~2026-12-02 19:15 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-30 23:16 [PATCH net-next v9 0/2] net: ethernet: mtk_eth_soc: 9K jumbo frame support Sandeep Haemoon
2026-11-30 23:16 ` [PATCH net-next v9 2/2] net: ethernet: mtk_eth_soc: add 9K jumbo Sandeep Haemoon
2026-11-30 23:16 ` [PATCH net-next v9 1/2] net: ethernet: mtk_eth_soc: skip page_pool Sandeep Haemoon
2026-12-01 7:12 ` [PATCH net-next v9 0/2] net: ethernet: mtk_eth_soc: 9K jumbo frame support Frank Wunderlich
2026-12-02 19:15 ` Sandeep Haemoon [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=reply-5019282b56da7ef440b9831f64403510@loljews.com \
--to=sandeeph@loljews.com \
--cc=frank-w@public-files.de \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox