]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net: stmmac: add helper to set receive tail pointer
authorRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Sat, 14 Mar 2026 09:42:50 +0000 (09:42 +0000)
committerJakub Kicinski <kuba@kernel.org>
Wed, 18 Mar 2026 03:32:08 +0000 (20:32 -0700)
commite9d0cafa9d60738ab396aa4b68d7e40c0855b4db
treed5c8a9d600a66ac822324420d63f39d568d244ad
parent4f6280c450ba699e3b700f1cbc4ff8dbc70f3c96
net: stmmac: add helper to set receive tail pointer

Setting the queue receive tail pointer follows a common pattern:
calculate the DMA address, and then call stmmac_set_rx_tail_ptr().
The only difference between all the call sites is the index used.

Factor this out into a static function, and add a comment about why
it only uses the normal descriptor size.

Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Link: https://patch.msgid.link/E1w1LWE-0000000DGSF-2Hbs@rmk-PC.armlinux.org.uk
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c