diff options
| author | Breno Leitao <leitao@debian.org> | 2024-02-28 03:31:22 -0800 |
|---|---|---|
| committer | Paolo Abeni <pabeni@redhat.com> | 2024-02-29 12:50:13 +0100 |
| commit | fa0cd90213695b928410484264b38982757a5c28 (patch) | |
| tree | 94ec4ece55e2b22686dd0642bd861ce4e7406464 /drivers/usb/cdns3/cdns3-trace.c | |
| parent | 3e2f544dd8a33b2f650b32920b9bef103da2a7cd (diff) | |
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>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-trace.c')
0 files changed, 0 insertions, 0 deletions
