Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

net: ip6_gre: Remove generic .ndo_get_stats64

Commit 3e2f544dd8a33 ("net: get stats64 if device if driver is
configured") moved the callback to dev_get_tstats64() to net core, so,
unless the driver is doing some custom stats collection, it does not
need to set .ndo_get_stats64.

Since this driver is now relying in NETDEV_PCPU_STAT_TSTATS, then, it
doesn't need to set the dev_get_tstats64() generic .ndo_get_stats64
function pointer.

Signed-off-by: Breno Leitao <leitao@debian.org>
Reviewed-by: David Ahern <dsahern@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Breno Leitao and committed by
David S. Miller
05d604a5 8622f90a

-3
-3
net/ipv6/ip6_gre.c
··· 1434 1434 .ndo_start_xmit = ip6gre_tunnel_xmit, 1435 1435 .ndo_siocdevprivate = ip6gre_tunnel_siocdevprivate, 1436 1436 .ndo_change_mtu = ip6_tnl_change_mtu, 1437 - .ndo_get_stats64 = dev_get_tstats64, 1438 1437 .ndo_get_iflink = ip6_tnl_get_iflink, 1439 1438 }; 1440 1439 ··· 1856 1857 .ndo_set_mac_address = eth_mac_addr, 1857 1858 .ndo_validate_addr = eth_validate_addr, 1858 1859 .ndo_change_mtu = ip6_tnl_change_mtu, 1859 - .ndo_get_stats64 = dev_get_tstats64, 1860 1860 .ndo_get_iflink = ip6_tnl_get_iflink, 1861 1861 }; 1862 1862 ··· 1918 1920 .ndo_set_mac_address = eth_mac_addr, 1919 1921 .ndo_validate_addr = eth_validate_addr, 1920 1922 .ndo_change_mtu = ip6_tnl_change_mtu, 1921 - .ndo_get_stats64 = dev_get_tstats64, 1922 1923 .ndo_get_iflink = ip6_tnl_get_iflink, 1923 1924 }; 1924 1925