[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAHmME9qkPLwO4+H=+GAvWXDMQz-tHhyK1mmmtmb5Waph7fTiCw@mail.gmail.com>
Date: Wed, 4 Nov 2020 20:46:20 +0100
From: "Jason A. Donenfeld" <Jason@...c4.com>
To: Heiner Kallweit <hkallweit1@...il.com>
Cc: Jakub Kicinski <kuba@...nel.org>,
David Miller <davem@...emloft.net>,
Alexey Kuznetsov <kuznet@....inr.ac.ru>,
Hideaki YOSHIFUJI <yoshfuji@...ux-ipv6.org>,
Andrew Lunn <andrew@...n.ch>,
Vivien Didelot <vivien.didelot@...il.com>,
Florian Fainelli <f.fainelli@...il.com>,
Vladimir Oltean <olteanv@...il.com>,
Russell King <linux@...linux.org.uk>,
Pablo Neira Ayuso <pablo@...filter.org>,
Harald Welte <laforge@...monks.org>,
Herbert Xu <herbert@...dor.apana.org.au>,
"netdev@...r.kernel.org" <netdev@...r.kernel.org>,
osmocom-net-gprs@...ts.osmocom.org,
WireGuard mailing list <wireguard@...ts.zx2c4.com>,
Steffen Klassert <steffen.klassert@...unet.com>
Subject: Re: [PATCH net-next v2 07/10] wireguard: switch to dev_get_tstats64
On Wed, Nov 4, 2020 at 3:31 PM Heiner Kallweit <hkallweit1@...il.com> wrote:
>
> Replace ip_tunnel_get_stats64() with the new identical core fucntion
> dev_get_tstats64().
>
> Signed-off-by: Heiner Kallweit <hkallweit1@...il.com>
> ---
> drivers/net/wireguard/device.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/net/wireguard/device.c b/drivers/net/wireguard/device.c
> index c9f65e96c..a3ed49cd9 100644
> --- a/drivers/net/wireguard/device.c
> +++ b/drivers/net/wireguard/device.c
> @@ -215,7 +215,7 @@ static const struct net_device_ops netdev_ops = {
> .ndo_open = wg_open,
> .ndo_stop = wg_stop,
> .ndo_start_xmit = wg_xmit,
> - .ndo_get_stats64 = ip_tunnel_get_stats64
> + .ndo_get_stats64 = dev_get_tstats64
> };
>
> static void wg_destruct(struct net_device *dev)
> --
> 2.29.2
Looks fine to me.
Reviewed-by: Jason A. Donenfeld <Jason@...c4.com>
Powered by blists - more mailing lists