Re: [PATCH] netdev: Use try_cmpxchg in napi_if_scheduled_mark_missed
From: patchwork-bot+netdevbpf
Date: Thu Aug 25 2022 - 19:10:42 EST
Hello:
This patch was applied to netdev/net-next.git (master)
by Jakub Kicinski <kuba@xxxxxxxxxx>:
On Mon, 22 Aug 2022 16:32:43 +0200 you wrote:
> Use try_cmpxchg instead of cmpxchg (*ptr, old, new) == old in
> napi_if_scheduled_mark_missed. x86 CMPXCHG instruction returns
> success in ZF flag, so this change saves a compare after cmpxchg
> (and related move instruction in front of cmpxchg).
>
> Also, try_cmpxchg implicitly assigns old *ptr value to "old" when cmpxchg
> fails, enabling further code simplifications.
>
> [...]
Here is the summary with links:
- netdev: Use try_cmpxchg in napi_if_scheduled_mark_missed
https://git.kernel.org/netdev/net-next/c/b9030780971b
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html