]> git.baikalelectronics.ru Git - kernel.git/commit
net: use u64_stats_t in struct pcpu_lstats
authorEric Dumazet <edumazet@google.com>
Fri, 8 Nov 2019 00:27:22 +0000 (16:27 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 8 Nov 2019 04:03:08 +0000 (20:03 -0800)
commitb4f2dae2442ff999ce7b064c6c0a0764d7cb419b
tree1a717aaeccccc9d8ff8f923dc9ac4f0d840655cd
parentcd055089a783077e4b7f5e5bb26b0858727ec798
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: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/loopback.c
include/linux/netdevice.h