Re: [PATCH net-next] net: stats: Read the statistics in ___gnet_stats_copy_basic() instead of adding.

From: patchwork-bot+netdevbpf
Date: Thu Oct 21 2021 - 07:50:29 EST


Hello:

This patch was applied to netdev/net-next.git (master)
by David S. Miller <davem@xxxxxxxxxxxxx>:

On Thu, 21 Oct 2021 11:59:19 +0200 you wrote:
> Since the rework, the statistics code always adds up the byte and packet
> value(s). On 32bit architectures a seqcount_t is used in
> gnet_stats_basic_sync to ensure that the 64bit values are not modified
> during the read since two 32bit loads are required. The usage of a
> seqcount_t requires a lock to ensure that only one writer is active at a
> time. This lock leads to disabled preemption during the update.
>
> [...]

Here is the summary with links:
- [net-next] net: stats: Read the statistics in ___gnet_stats_copy_basic() instead of adding.
https://git.kernel.org/netdev/net-next/c/c5c6e589a8c8

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