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

ip6_vti: 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
b2c919c1 a9b2d55a

-1
-1
net/ipv6/ip6_vti.c
··· 887 887 .ndo_uninit = vti6_dev_uninit, 888 888 .ndo_start_xmit = vti6_tnl_xmit, 889 889 .ndo_siocdevprivate = vti6_siocdevprivate, 890 - .ndo_get_stats64 = dev_get_tstats64, 891 890 .ndo_get_iflink = ip6_tnl_get_iflink, 892 891 }; 893 892