[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20201011150723.72dee9f8@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com>
Date: Sun, 11 Oct 2020 15:07:23 -0700
From: Jakub Kicinski <kuba@...nel.org>
To: Heiner Kallweit <hkallweit1@...il.com>
Cc: David Miller <davem@...emloft.net>,
Bjørn Mork <bjorn@...k.no>,
Oliver Neukum <oneukum@...e.com>,
Igor Mitsyanko <imitsyanko@...ntenna.com>,
Sergey Matyukevich <geomatsi@...il.com>,
Kalle Valo <kvalo@...eaurora.org>,
Roopa Prabhu <roopa@...dia.com>,
Nikolay Aleksandrov <nikolay@...dia.com>,
Andrew Lunn <andrew@...n.ch>,
Vivien Didelot <vivien.didelot@...il.com>,
Florian Fainelli <f.fainelli@...il.com>,
Vladimir Oltean <olteanv@...il.com>,
Alexey Kuznetsov <kuznet@....inr.ac.ru>,
Hideaki YOSHIFUJI <yoshfuji@...ux-ipv6.org>,
Johannes Berg <johannes@...solutions.net>,
Pravin B Shelar <pshelar@....org>,
Steffen Klassert <steffen.klassert@...unet.com>,
Herbert Xu <herbert@...dor.apana.org.au>,
"netdev@...r.kernel.org" <netdev@...r.kernel.org>,
linux-rdma@...r.kernel.org,
Linux USB Mailing List <linux-usb@...r.kernel.org>,
linux-wireless <linux-wireless@...r.kernel.org>,
bridge@...ts.linux-foundation.org
Subject: Re: [PATCH net-next 01/12] net: core: add function
dev_fetch_sw_netstats for fetching pcpu_sw_netstats
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@...il.com>
> +/**
> + * 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?
> + */
> +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.
Powered by blists - more mailing lists