]> git.ipfire.org Git - thirdparty/linux.git/commit
net: stmmac: add helper to set transmit tail pointer
authorRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Sat, 14 Mar 2026 09:43:26 +0000 (09:43 +0000)
committerJakub Kicinski <kuba@kernel.org>
Wed, 18 Mar 2026 03:32:09 +0000 (20:32 -0700)
commitb2fd52d90b8a1daeb6d44583bada7baad82b3c98
tree1e2ca5101326c0aa4fbf5d7f6758d39078fe24f1
parent2c3525ad09e937e58ad6c78b9257af7d41bf3ab0
net: stmmac: add helper to set transmit tail pointer

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

Factor this out into a static function.

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