]> 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)
commitc6de4f4f2faa092609d179bb6083be79734f03ed
tree08044c904414cee3b52c018d3a917c136c6dd879
parent5c0f20af6c4f7a030862d5a324aebca1a2e1b731
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