Skip to content
Commit fd2f4737 authored by Eric Dumazet's avatar Eric Dumazet Committed by David S. Miller
Browse files

net: use u64_stats_t in struct pcpu_lstats



In order to fix the data-race found by KCSAN, we
can use the new u64_stats_t type and its accessors instead
of plain u64 fields. This will still generate optimal code
for both 32 and 64 bit platforms.

Signed-off-by: default avatarEric Dumazet <edumazet@google.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 5260dd3e
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment