From: netdev-bot+sashiko@kernel.org
To: sandeeph@loljews.com
Cc: netdev@vger.kernel.org, nbd@nbd.name, lorenzo@kernel.org,
andrew+netdev@lunn.ch, davem@davemloft.net, edumazet@kernel.org,
kuba@kernel.org, pabeni@redhat.com, matthias.bgg@gmail.com,
angelogioacchino.delregno@collabora.com, linux@armlinux.org.uk,
daniel@makrotopia.org, mason-cw.chang@mediatek.com,
frank-w@public-files.de, linux-mediatek@lists.infradead.org,
linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH net-next v8 2/3] net: ethernet: mtk_eth_soc: skip page_pool
Date: Mon, 23 Nov 2026 23:15:03 +0000 [thread overview]
Message-ID: <179547570374.3135.12912377110085443536@kernel.org> (raw)
In-Reply-To: <patch-512286e3bf3d34c81957126ab22d02fe@loljews.com>
Thank you for your contribution! Sashiko AI review found more severe
issue(s) in other patches of this series. This mail is only an FYI, in case
you want to address the nit picks below when you respin.
Low priority / nit picks for your consideration:
- [Low] The subject line 'net: ethernet: mtk_eth_soc: skip page_pool'
leaves out the condition.
--
net: ethernet: mtk_eth_soc: skip page_pool
This commit adds a check in mtk_rx_alloc() so that an RX ring only gets
a page_pool when ring->buf_size fits within MTK_PP_MAX_BUF_SIZE. Rings
larger than that use the existing netdev_alloc_frag() and
mtk_max_lro_buf_alloc() path. The commit message says the check always
passes with the current MTU limits and only matters once 9K jumbo
support is added.
Link: https://github.com/mediatek/mtk-openwrt-feeds
> net: ethernet: mtk_eth_soc: skip page_pool
[Severity: Low]
This isn't a bug, but the subject doesn't say when page_pool is skipped.
In a shortlog or a backport scan, it reads as if page_pool is being
removed from the driver.
The patch only adds a per-ring check in mtk_rx_alloc():
if (mtk_page_pool_enabled(eth) &&
ring->buf_size <= MTK_PP_MAX_BUF_SIZE) {
At this commit the check changes nothing on SoCs that use page_pool. The
non-HWLRO rings are sized from ETH_DATA_LEN, so buf_size stays around
2K. That is well below MTK_PP_MAX_BUF_SIZE, which is about 3520 with 4K
pages.
The HWLRO rings are larger. They only exist on NETSYS v1 SoCs
(mt2701/mt7622/mt7623/mt7629), and mtk_page_pool_enabled() is already
false there.
Could the subject say when page_pool is skipped? For example, "skip
page_pool for RX rings larger than MTK_PP_MAX_BUF_SIZE".
--
Sashiko AI review · https://netdev-ai.bots.linux.dev/sashiko/#/patchset/patch-51fa5ed3bc801edb3f29b61ca7888382%40loljews.com
parent reply other threads:[~2026-11-23 23:15 UTC|newest]
Thread overview: expand[flat|nested] mbox.gz Atom feed
[parent not found: <patch-512286e3bf3d34c81957126ab22d02fe@loljews.com>]
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=179547570374.3135.12912377110085443536@kernel.org \
--to=netdev-bot+sashiko@kernel.org \
--cc=andrew+netdev@lunn.ch \
--cc=angelogioacchino.delregno@collabora.com \
--cc=daniel@makrotopia.org \
--cc=davem@davemloft.net \
--cc=edumazet@kernel.org \
--cc=frank-w@public-files.de \
--cc=kuba@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mediatek@lists.infradead.org \
--cc=linux@armlinux.org.uk \
--cc=lorenzo@kernel.org \
--cc=mason-cw.chang@mediatek.com \
--cc=matthias.bgg@gmail.com \
--cc=nbd@nbd.name \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=sandeeph@loljews.com \
/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