From: Qingfang Deng <dqfext@gmail.com>
To: "Russell King (Oracle)" <linux@armlinux.org.uk>
Cc: netdev@vger.kernel.org, Andrew Lunn <andrew@lunn.ch>,
Jose Abreu <joabreu@synopsys.com>,
Maxime Chevallier <maxime.chevallier@bootlin.com>,
Thierry Reding <treding@nvidia.com>,
Paritosh Dixit <paritoshd@nvidia.com>
Subject: Re: RFC: stmmac RSS support
Date: Mon, 9 Feb 2026 09:35:25 +0800 [thread overview]
Message-ID: <20260209013537.19052-1-dqfext@gmail.com> (raw)
In-Reply-To: <aYd4BkAeNW6d0iIC@shell.armlinux.org.uk>
On Sat, 7 Feb 2026 17:36:06 +0000, Russell King (Oracle) wrote:
> Hi,
>
> While looking at the possibilities of minimising the memory that
> struct plat_stmmacenet_data consumes (880 bytes presently on
> aarch64), I came across the RSS feature in stmmac.
>
> In commit 76067459c686 ("net: stmmac: Implement RSS and enable it in
> XGMAC core"), support was added for RSS to the core stmmac driver for
> the dwxgmac2 core. I can only find socfpga and tegra as the two
> platform glues that use the dwxgmac2 core.
>
> RSS support is only enabled when both the core supports it, and the
> platform glue sets priv->plat->rss_en.
>
> However, the stmmac-related results of grepping for this member do not
> show any platform glues which set this flag:
>
> $ git grep '\<rss_en\>'
> Documentation/networking/device_drivers/ethernet/stmicro/stmmac.rst: int rss_en;
> drivers/net/ethernet/stmicro/stmmac/stmmac_main.c: if (!priv->dma_cap.rssen || !priv->plat->rss_en) {
> drivers/net/ethernet/stmicro/stmmac/stmmac_main.c: if (priv->dma_cap.rssen && priv->plat->rss_en)
>
> So, as no one has decided to enable this feature during the intervening
> six years, is there any benefit to having this code in the mainline
> kernel, or should this feature be dropped?
>
> If a user appears, the code will remain in git history and could be
> restored.
>
> Thoughts?
As someone who has worked on both DWC GMAC and DWC XGMAC, I think the
whole XGMAC code needs to be uncoupled from the stmmac driver. They're
completely different IP cores.
>
> --
> RMK's Patch system: https://www.armlinux.org.uk/developer/patches/
> FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last!
>
prev parent reply other threads:[~2026-02-09 1:35 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-02-07 17:36 RFC: stmmac RSS support Russell King (Oracle)
2026-02-09 1:35 ` Qingfang Deng [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=20260209013537.19052-1-dqfext@gmail.com \
--to=dqfext@gmail.com \
--cc=andrew@lunn.ch \
--cc=joabreu@synopsys.com \
--cc=linux@armlinux.org.uk \
--cc=maxime.chevallier@bootlin.com \
--cc=netdev@vger.kernel.org \
--cc=paritoshd@nvidia.com \
--cc=treding@nvidia.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