ipv6: tunnels: use DEV_STATS_INC()
authorEric Dumazet <edumazet@google.com>
Tue, 15 Nov 2022 08:53:57 +0000 (08:53 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 16 Nov 2022 12:48:44 +0000 (12:48 +0000)
commit2fad1ba354d4a82b1b635a78f25d9682d4febb5e
tree36e7f02ed2129570965094df188d19e99f056a18
parentcb34b7cf17ecf33499c9298943f85af247abc1e9
ipv6: tunnels: use DEV_STATS_INC()

Most of code paths in tunnels are lockless (eg NETIF_F_LLTX in tx).

Adopt SMP safe DEV_STATS_{INC|ADD}() to update dev->stats fields.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/ip6_gre.c
net/ipv6/ip6_tunnel.c
net/ipv6/ip6_vti.c
net/ipv6/ip6mr.c