diff options
author | Heiner Kallweit <hkallweit1@gmail.com> | 2020-10-12 10:01:27 +0200 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2020-10-13 17:33:48 -0700 |
commit | 44fa32f008ab7092842095a7a474c48303a2f186 (patch) | |
tree | 2da344027227688188027dc5516bdc7b2510e2f8 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 3618ad2a7c0e78e4258386394d5d5f92a3dbccf8 (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 <hkallweit1@gmail.com>
Link: https://lore.kernel.org/r/6d16a338-52f5-df69-0020-6bc771a7d498@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions