net: netdev_tx_sent_queue() small optimization
Subsystems (2)
PATCH 1/1 net: netdev_tx_sent_queue() small optimization
Change smp_mb() imediately following a set_bit()
with smp_mb__after_atomic().
Signed-off-by Eric Dumazet <[email protected]>
--- include/linux/netdevice.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
include/linux/netdevice.h +1 -1
@@ -3517,7 +3517,7 @@ static inline void netdev_tx_sent_queue(struct netdev_queue *dev_queue,* because in netdev_tx_completed_queue we update the dql_completed * before checking the XOFF flag. */ -smp_mb (); +smp_mb__after_atomic ();/* check again in case another CPU has just made room avail */ if (unlikely (dql_avail (&dev_queue->dql) >=0 ))
Signature · 1 line
2.47.0.rc1.288.g06298d1525-goog
This patch was applied to netdev/net-next.git (main) by Paolo Abeni <[email protected]>:
Hello:
This patch was applied to netdev/net-next.git (main) by Paolo Abeni <[email protected]>:
Quoted 7 lines · On Fri, 18 Oct 2024 05:23:10 +0000 you wrote:
Change
smp_mb()imediately following aset_bit()
withsmp_mb__after_atomic().Signed-off-by Eric Dumazet <[email protected]>--- include/linux/netdevice.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Here is the summary with links:
- [net-next] net: netdev_tx_sent_queue() small optimization
https://git.kernel.org/netdev/net-next/c/7cfc1b1fa867
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html