aboutsummaryrefslogtreecommitdiff
path: root/scripts/generate_rust_analyzer.py
diff options
context:
space:
mode:
authorBreno Leitao <[email protected]>2024-02-28 03:31:21 -0800
committerPaolo Abeni <[email protected]>2024-02-29 12:50:13 +0100
commit3e2f544dd8a33b2f650b32920b9bef103da2a7cd (patch)
tree328cf3e3f2de14061c161c8c38fa81dd1c4a8747 /scripts/generate_rust_analyzer.py
parent39de85775cfbd1da2c4f9523110cddb1eb4adcb7 (diff)
net: get stats64 if device if driver is configured
If the network driver is relying in the net core to do stats allocation, then we want to dev_get_tstats64() instead of netdev_stats_to_stats64(), since there are per-cpu stats that needs to be taken in consideration. This will also simplify the drivers in regard to statistics. Once the driver sets NETDEV_PCPU_STAT_TSTATS, it doesn't not need to allocate the stacks, neither it needs to set `.ndo_get_stats64 = dev_get_tstats64` for the generic stats collection function anymore. Signed-off-by: Breno Leitao <[email protected]> Reviewed-by: Simon Horman <[email protected]> Signed-off-by: Paolo Abeni <[email protected]>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions