Re: [PATCH net-next v2 2/2] net: airoha: Use u64_stats_t with u64_stats_sync properly
From: Jakub Kicinski <kuba@kernel.org>
Date: 2026-01-26 00:35:12
Also in:
linux-mediatek, lkml, netdev
From: Jakub Kicinski <kuba@kernel.org>
Date: 2026-01-26 00:35:12
Also in:
linux-mediatek, lkml, netdev
On Mon, 26 Jan 2026 06:07:50 +0800 David Yang wrote:
On 64bit arches, struct u64_stats_sync is empty and provides no help against load/store tearing. Convert to u64_stats_t to ensure atomic operations.
The driver takes a spin lock over the very expensive series of register reads and then drops out to copy the just read values? Just move the readers under the spinlock?