Thread (21 messages) 21 messages, 5 authors, 2020-10-12

Re: [PATCH net-next 01/12] net: core: add function dev_fetch_sw_netstats for fetching pcpu_sw_netstats

flat view

From: Jakub Kicinski <kuba@kernel.org>
Date: 2020-10-11 22:07:30
Also in: bridge, linux-rdma, linux-usb, linux-wireless

On Sun, 11 Oct 2020 21:36:43 +0200 Heiner Kallweit wrote:
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: Heiner Kallweit <hkallweit1@gmail.com>
quoted hunk ↗ jump to hunk
+/**
+ *	dev_fetch_sw_netstats - get per-cpu network device statistics
+ *	@s: place to store stats
+ *	@netstats: per-cpu network stats to read from
+ *
+ *	Read per-cpu network statistics and populate the related fields in s.
in @s?
quoted hunk ↗ jump to hunk
+ */
+void dev_fetch_sw_netstats(struct rtnl_link_stats64 *s,
+			   struct pcpu_sw_netstats __percpu *netstats)
+}
+EXPORT_SYMBOL(dev_fetch_sw_netstats);
Your pick, but _GPL would be fine too even if most exports here are
non-GPL-exclusive. 
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help