OSDN Git Service

Merge branch 'net-add-and-use-function-dev_fetch_sw_netstats-for-fetching-pcpu_sw_net...
authorJakub Kicinski <kuba@kernel.org>
Wed, 14 Oct 2020 00:34:26 +0000 (17:34 -0700)
committerJakub Kicinski <kuba@kernel.org>
Wed, 14 Oct 2020 00:37:37 +0000 (17:37 -0700)
Heiner Kallweit says:

====================
net: add and use 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().
====================

Signed-off-by: Jakub Kicinski <kuba@kernel.org>

Trivial merge