net: sit: Do not set .ndo_get_stats64
authorBreno Leitao <leitao@debian.org>
Wed, 28 Feb 2024 11:31:22 +0000 (03:31 -0800)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 29 Feb 2024 11:50:13 +0000 (12:50 +0100)
commitfa0cd90213695b928410484264b38982757a5c28
tree94ec4ece55e2b22686dd0642bd861ce4e7406464
parent3e2f544dd8a33b2f650b32920b9bef103da2a7cd
net: sit: Do not set .ndo_get_stats64

If the driver is using the network core allocation mechanism, by setting
NETDEV_PCPU_STAT_TSTATS, as this driver is, then, it doesn't need to set
the dev_get_tstats64() generic .ndo_get_stats64 function pointer. Since
the network core calls it automatically, and .ndo_get_stats64 should
only be set if the driver needs special treatment.

This simplifies the driver, since all the generic statistics is now
handled by core.

Signed-off-by: Breno Leitao <leitao@debian.org>
Reviewed-by: Simon Horman <horms@kernel.org>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
net/ipv6/sit.c