* RFC: stmmac RSS support
@ 2026-02-07 17:36 Russell King (Oracle)
2026-02-09 1:35 ` Qingfang Deng
0 siblings, 1 reply; 2+ messages in thread
From: Russell King (Oracle) @ 2026-02-07 17:36 UTC (permalink / raw)
To: netdev, Andrew Lunn, Jose Abreu
Cc: Maxime Chevallier, Thierry Reding, Paritosh Dixit
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?
--
RMK's Patch system: https://www.armlinux.org.uk/developer/patches/
FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last!
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: RFC: stmmac RSS support
2026-02-07 17:36 RFC: stmmac RSS support Russell King (Oracle)
@ 2026-02-09 1:35 ` Qingfang Deng
0 siblings, 0 replies; 2+ messages in thread
From: Qingfang Deng @ 2026-02-09 1:35 UTC (permalink / raw)
To: Russell King (Oracle)
Cc: netdev, Andrew Lunn, Jose Abreu, Maxime Chevallier,
Thierry Reding, Paritosh Dixit
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!
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-02-09 1:35 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-02-07 17:36 RFC: stmmac RSS support Russell King (Oracle)
2026-02-09 1:35 ` Qingfang Deng
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox