aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin/net_dropmonitor-report
diff options
context:
space:
mode:
authorHeiner Kallweit <[email protected]>2020-10-12 10:01:27 +0200
committerJakub Kicinski <[email protected]>2020-10-13 17:33:48 -0700
commit44fa32f008ab7092842095a7a474c48303a2f186 (patch)
tree2da344027227688188027dc5516bdc7b2510e2f8 /tools/perf/scripts/python/bin/net_dropmonitor-report
parent3618ad2a7c0e78e4258386394d5d5f92a3dbccf8 (diff)
net: add function dev_fetch_sw_netstats for fetching pcpu_sw_netstats
In several places the same code is used to populate rtnl_link_stats64 fields with data from pcpu_sw_netstats. Therefore factor out this code to a new function dev_fetch_sw_netstats(). v2: - constify argument netstats - don't ignore netstats being NULL or an ERRPTR - switch to EXPORT_SYMBOL_GPL Signed-off-by: Heiner Kallweit <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/net_dropmonitor-report')
0 files changed, 0 insertions, 0 deletions