]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net: ethernet: ti: netcp: Use u64_stats_t with u64_stats_sync properly
authorDavid Yang <mmyangfl@gmail.com>
Fri, 23 Jan 2026 16:48:36 +0000 (00:48 +0800)
committerJakub Kicinski <kuba@kernel.org>
Tue, 27 Jan 2026 03:53:41 +0000 (19:53 -0800)
commit3eef6c061f97ab2a942dc98291bcdae9a16e5bda
tree2b31ef139afd49411a1d58fb0b6502a3b0c1d153
parent5c05b3dbccb17ddd6515a6c749feee9b657a5640
net: ethernet: ti: netcp: Use u64_stats_t with u64_stats_sync properly

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.

Note that does not mean the code is now tear-free: there're u32 counters
unprotected by u64_stats or anything else.

Signed-off-by: David Yang <mmyangfl@gmail.com>
Link: https://patch.msgid.link/20260123164841.2890054-1-mmyangfl@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/ti/netcp.h
drivers/net/ethernet/ti/netcp_core.c