diff options
author | Breno Leitao <[email protected]> | 2024-02-28 03:31:22 -0800 |
---|---|---|
committer | Paolo Abeni <[email protected]> | 2024-02-29 12:50:13 +0100 |
commit | fa0cd90213695b928410484264b38982757a5c28 (patch) | |
tree | 94ec4ece55e2b22686dd0642bd861ce4e7406464 /scripts/rustdoc_test_builder.rs | |
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 <[email protected]>
Reviewed-by: Simon Horman <[email protected]>
Signed-off-by: Paolo Abeni <[email protected]>
Diffstat (limited to 'scripts/rustdoc_test_builder.rs')
0 files changed, 0 insertions, 0 deletions