ipv4/ipv6: switch to dev_get_tstats64
authorHeiner Kallweit <hkallweit1@gmail.com>
Sat, 7 Nov 2020 20:54:33 +0000 (21:54 +0100)
committerJakub Kicinski <kuba@kernel.org>
Tue, 10 Nov 2020 01:50:28 +0000 (17:50 -0800)
Replace ip_tunnel_get_stats64() with the new identical core function
dev_get_tstats64().

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/ipv4/ip_gre.c
net/ipv4/ipip.c
net/ipv6/ip6_gre.c
net/ipv6/sit.c

index e70291748889b306073f2cd4368959f7e0c83aee..a68bf4c6fe9b7ccc0c8d67ab25436a778b7a3139 100644 (file)
@@ -920,7 +920,7 @@ static const struct net_device_ops ipgre_netdev_ops = {
        .ndo_start_xmit         = ipgre_xmit,
        .ndo_do_ioctl           = ip_tunnel_ioctl,
        .ndo_change_mtu         = ip_tunnel_change_mtu,
-       .ndo_get_stats64        = ip_tunnel_get_stats64,
+       .ndo_get_stats64        = dev_get_tstats64,
        .ndo_get_iflink         = ip_tunnel_get_iflink,
        .ndo_tunnel_ctl         = ipgre_tunnel_ctl,
 };
@@ -1275,7 +1275,7 @@ static const struct net_device_ops gre_tap_netdev_ops = {
        .ndo_set_mac_address    = eth_mac_addr,
        .ndo_validate_addr      = eth_validate_addr,
        .ndo_change_mtu         = ip_tunnel_change_mtu,
-       .ndo_get_stats64        = ip_tunnel_get_stats64,
+       .ndo_get_stats64        = dev_get_tstats64,
        .ndo_get_iflink         = ip_tunnel_get_iflink,
        .ndo_fill_metadata_dst  = gre_fill_metadata_dst,
 };
@@ -1308,7 +1308,7 @@ static const struct net_device_ops erspan_netdev_ops = {
        .ndo_set_mac_address    = eth_mac_addr,
        .ndo_validate_addr      = eth_validate_addr,
        .ndo_change_mtu         = ip_tunnel_change_mtu,
-       .ndo_get_stats64        = ip_tunnel_get_stats64,
+       .ndo_get_stats64        = dev_get_tstats64,
        .ndo_get_iflink         = ip_tunnel_get_iflink,
        .ndo_fill_metadata_dst  = gre_fill_metadata_dst,
 };
index 75d35e76bec2c4b185c821156d84f31c2b7b0f7a..d5bfa087c23ad71ff7ea54c849034a3953100377 100644 (file)
@@ -347,7 +347,7 @@ static const struct net_device_ops ipip_netdev_ops = {
        .ndo_start_xmit = ipip_tunnel_xmit,
        .ndo_do_ioctl   = ip_tunnel_ioctl,
        .ndo_change_mtu = ip_tunnel_change_mtu,
-       .ndo_get_stats64 = ip_tunnel_get_stats64,
+       .ndo_get_stats64 = dev_get_tstats64,
        .ndo_get_iflink = ip_tunnel_get_iflink,
        .ndo_tunnel_ctl = ipip_tunnel_ctl,
 };
index 931b186d2e4869c42ce1a906c6cb04815b533d9a..8cf6599944123fe2efc84e91acd8efb5957c7974 100644 (file)
@@ -1391,7 +1391,7 @@ static const struct net_device_ops ip6gre_netdev_ops = {
        .ndo_start_xmit         = ip6gre_tunnel_xmit,
        .ndo_do_ioctl           = ip6gre_tunnel_ioctl,
        .ndo_change_mtu         = ip6_tnl_change_mtu,
-       .ndo_get_stats64        = ip_tunnel_get_stats64,
+       .ndo_get_stats64        = dev_get_tstats64,
        .ndo_get_iflink         = ip6_tnl_get_iflink,
 };
 
@@ -1828,7 +1828,7 @@ static const struct net_device_ops ip6gre_tap_netdev_ops = {
        .ndo_set_mac_address = eth_mac_addr,
        .ndo_validate_addr = eth_validate_addr,
        .ndo_change_mtu = ip6_tnl_change_mtu,
-       .ndo_get_stats64 = ip_tunnel_get_stats64,
+       .ndo_get_stats64 = dev_get_tstats64,
        .ndo_get_iflink = ip6_tnl_get_iflink,
 };
 
@@ -1896,7 +1896,7 @@ static const struct net_device_ops ip6erspan_netdev_ops = {
        .ndo_set_mac_address =  eth_mac_addr,
        .ndo_validate_addr =    eth_validate_addr,
        .ndo_change_mtu =       ip6_tnl_change_mtu,
-       .ndo_get_stats64 =      ip_tunnel_get_stats64,
+       .ndo_get_stats64 =      dev_get_tstats64,
        .ndo_get_iflink =       ip6_tnl_get_iflink,
 };
 
index 5e2c34c0ac973643f2fdffee0e9c2d1214922425..4dc5f93669de5f449ba831da95e2710dcdc35a86 100644 (file)
@@ -1396,7 +1396,7 @@ static const struct net_device_ops ipip6_netdev_ops = {
        .ndo_uninit     = ipip6_tunnel_uninit,
        .ndo_start_xmit = sit_tunnel_xmit,
        .ndo_do_ioctl   = ipip6_tunnel_ioctl,
-       .ndo_get_stats64 = ip_tunnel_get_stats64,
+       .ndo_get_stats64 = dev_get_tstats64,
        .ndo_get_iflink = ip_tunnel_get_iflink,
        .ndo_tunnel_ctl = ipip6_tunnel_ctl,
 };