Files
kernel/include/linux
Heiner Kallweit 44fa32f008 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>
2020-10-13 17:33:48 -07:00
..
2020-10-12 10:06:39 +02:00
2020-09-18 17:49:20 -07:00
2020-07-27 14:55:22 +01:00
2020-10-02 14:59:25 -07:00
2020-09-21 15:00:40 -07:00
2020-10-02 15:00:49 -07:00
2020-07-27 14:29:23 -04:00
2020-08-14 19:56:56 -07:00
2020-07-24 17:12:41 -07:00
2020-08-04 21:02:38 -04:00
2020-08-26 12:41:56 +02:00
2020-09-04 09:25:20 -07:00
2020-09-23 18:02:49 -07:00
2020-09-27 11:21:35 -07:00
2020-07-31 18:08:59 +10:00
2020-09-24 19:49:36 -07:00
2020-07-23 17:34:18 +10:00
2020-08-31 12:52:33 -07:00
2020-09-23 18:02:49 -07:00
2020-08-07 11:33:24 -07:00
2020-08-01 11:28:17 +02:00