diff options
author | Eric Dumazet <edumazet@google.com> | 2019-11-08 01:27:20 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-11-08 05:03:08 +0100 |
commit | 316580b69d0a7aeeee5063af47438b626bc47cbd (patch) | |
tree | 83ede594937ec2ce27335a73fb3d6cea4ef95909 /drivers/net/tun.c | |
parent | net: dummy: use standard dev_lstats_add() and dev_lstats_read() (diff) | |
download | linux-316580b69d0a7aeeee5063af47438b626bc47cbd.tar.xz linux-316580b69d0a7aeeee5063af47438b626bc47cbd.zip |
u64_stats: provide u64_stats_t type
On 64bit arches, struct u64_stats_sync is empty and provides
no help against load/store tearing.
Using READ_ONCE()/WRITE_ONCE() would be needed.
But the update side would be slightly more expensive.
local64_t was defined so that we could use regular adds
in a manner which is atomic wrt IRQs.
However the u64_stats infra means we do not have to use
local64_t on 32bit arches since the syncp provides the needed
protection.
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/tun.c')
0 files changed, 0 insertions, 0 deletions