ip6_tunnel: use ip_tunnel_get_stats64 as ndo_get_stats64 callback
authorHeiner Kallweit <hkallweit1@gmail.com>
Sat, 7 Nov 2020 20:51:32 +0000 (21:51 +0100)
committerJakub Kicinski <kuba@kernel.org>
Tue, 10 Nov 2020 01:50:28 +0000 (17:50 -0800)
commit6b840a04fe3521c3eea41e32dd5b0835418553da
tree08044c904414cee3b52c018d3a917c136c6dd879
parent497a5757ce4e8f37219a3989ac6a561eb9a8e6c7
ip6_tunnel: use ip_tunnel_get_stats64 as ndo_get_stats64 callback

Switch ip6_tunnel to the standard statistics pattern:
- use dev->stats for the less frequently accessed counters
- use dev->tstats for the frequently accessed counters

An additional benefit is that we now have 64bit statistics also on
32bit systems.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/ipv6/ip6_tunnel.c