]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit7587f27d6e91c7a7287ca386a78f4a86ab2ffb67
tree08044c904414cee3b52c018d3a917c136c6dd879
parentbd6c1c3130c370232c50211e3ce872eeca71b5e9
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