]> git.baikalelectronics.ru Git - kernel.git/commit
vlan: adopt u64_stats_t
authorEric Dumazet <edumazet@google.com>
Wed, 8 Jun 2022 15:46:32 +0000 (08:46 -0700)
committerJakub Kicinski <kuba@kernel.org>
Fri, 10 Jun 2022 04:53:09 +0000 (21:53 -0700)
commit80db374c30dac3f51fbed8c56d7873145c2bdae9
treea58ff2dad4ed05a59dce37b412ac38aaaa459d63
parente124aba2387b492a1d86b213ca21b245a4744771
vlan: adopt u64_stats_t

As explained in commit 6e4d7df7bad9 ("u64_stats: provide u64_stats_t type")
we should use u64_stats_t and related accessors to avoid load/store tearing.

Add READ_ONCE() when reading rx_errors & tx_dropped.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/macvlan.c
include/linux/if_macvlan.h
include/linux/if_vlan.h
net/8021q/vlan_core.c
net/8021q/vlan_dev.c