Re: [PATCH net v2] net: cadence: macb: Synchronize stats calculations

From: patchwork-bot+netdevbpf
Date: Fri Feb 21 2025 - 19:50:29 EST


Hello:

This patch was applied to netdev/net.git (main)
by Jakub Kicinski <kuba@xxxxxxxxxx>:

On Thu, 20 Feb 2025 11:29:50 -0500 you wrote:
> Stats calculations involve a RMW to add the stat update to the existing
> value. This is currently not protected by any synchronization mechanism,
> so data races are possible. Add a spinlock to protect the update. The
> reader side could be protected using u64_stats, but we would still need
> a spinlock for the update side anyway. And we always do an update
> immediately before reading the stats anyway.
>
> [...]

Here is the summary with links:
- [net,v2] net: cadence: macb: Synchronize stats calculations
https://git.kernel.org/netdev/net/c/fa52f15c745c

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html