ipv4: tunnels: use DEV_STATS_INC()
authorEric Dumazet <edumazet@google.com>
Tue, 15 Nov 2022 08:53:58 +0000 (08:53 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 16 Nov 2022 12:48:44 +0000 (12:48 +0000)
commitc4794d22251b979b12a6c8e2d3848b662a44fdb6
tree698b6c7d56109d7a1b2b09f5d4041f7c0237ba21
parent2fad1ba354d4a82b1b635a78f25d9682d4febb5e
ipv4: 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() to update dev->stats fields.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/ip_gre.c
net/ipv4/ip_tunnel.c
net/ipv4/ip_vti.c
net/ipv4/ipip.c
net/ipv4/ipmr.c