From: Andrew Lunn <andrew@lunn.ch>
To: Oleksij Rempel <o.rempel@pengutronix.de>
Cc: Jakub Kicinski <kuba@kernel.org>,
Vivien Didelot <vivien.didelot@gmail.com>,
Florian Fainelli <f.fainelli@gmail.com>,
Vladimir Oltean <olteanv@gmail.com>,
"David S. Miller" <davem@davemloft.net>,
Russell King <linux@armlinux.org.uk>,
Pengutronix Kernel Team <kernel@pengutronix.de>,
netdev@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-mips@vger.kernel.org
Subject: Re: [PATCH v3 net-next 2/2] net: dsa: qca: ar9331: export stats64
Date: Thu, 3 Dec 2020 15:22:00 +0100 [thread overview]
Message-ID: <20201203142200.GF2333853@lunn.ch> (raw)
In-Reply-To: <20201203085011.GA3606@pengutronix.de>
> @Andrew
>
> > You could update the stats here, after the interface is down. You then
> > know the stats are actually up to date and correct!
>
> stats are automatically read on __dev_notify_flags(), for example here:
>
> [ 11.049289] [<80069ce0>] show_stack+0x9c/0x140
> [ 11.053651] [<804eea2c>] ar9331_get_stats64+0x38/0x394
> [ 11.058820] [<80526584>] dev_get_stats+0x58/0xfc
> [ 11.063385] [<805428c8>] rtnl_fill_stats+0x6c/0x14c
> [ 11.068293] [<8054703c>] rtnl_fill_ifinfo+0x548/0xcec
> [ 11.073274] [<8054a4d4>] rtmsg_ifinfo_build_skb+0xbc/0x134
> [ 11.078799] [<8054a5d4>] rtmsg_ifinfo_event+0x4c/0x84
> [ 11.083782] [<8054a6c8>] rtmsg_ifinfo+0x2c/0x38
> [ 11.088378] [<80534380>] __dev_notify_flags+0x50/0xd8
> [ 11.093365] [<80534ca0>] dev_change_flags+0x60/0x80
> [ 11.098273] [<80c13fa4>] ic_close_devs+0xcc/0xdc
> [ 11.102810] [<80c15200>] ip_auto_config+0x1144/0x11e4
> [ 11.107847] [<80060f14>] do_one_initcall+0x110/0x2b4
> [ 11.112871] [<80bf31bc>] kernel_init_freeable+0x220/0x258
> [ 11.118248] [<80739a2c>] kernel_init+0x24/0x11c
> [ 11.122707] [<8006306c>] ret_from_kernel_thread+0x14/0x1c
>
> Do we really need an extra read within the ar9331 driver?
Ah, did not know that. Nice, Somebody solved this for all drivers at
once.
Andrew
next prev parent reply other threads:[~2020-12-03 14:23 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-12-02 14:09 [PATCH v3 net-next 0/2] net: dsa: add stats64 support Oleksij Rempel
2020-12-02 14:09 ` [PATCH v3 net-next 1/2] net: dsa: add optional " Oleksij Rempel
2020-12-02 17:19 ` Florian Fainelli
2020-12-02 14:09 ` [PATCH v3 net-next 2/2] net: dsa: qca: ar9331: export stats64 Oleksij Rempel
2020-12-02 17:20 ` Florian Fainelli
2020-12-02 18:42 ` Jakub Kicinski
2020-12-03 8:50 ` Oleksij Rempel
2020-12-03 14:22 ` Andrew Lunn [this message]
2020-12-03 16:35 ` Jakub Kicinski
2020-12-03 17:53 ` Oleksij Rempel
2020-12-03 18:01 ` Jakub Kicinski
2020-12-03 18:01 ` Vladimir Oltean
2020-12-04 13:40 ` Oleksij Rempel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20201203142200.GF2333853@lunn.ch \
--to=andrew@lunn.ch \
--cc=davem@davemloft.net \
--cc=f.fainelli@gmail.com \
--cc=kernel@pengutronix.de \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mips@vger.kernel.org \
--cc=linux@armlinux.org.uk \
--cc=netdev@vger.kernel.org \
--cc=o.rempel@pengutronix.de \
--cc=olteanv@gmail.com \
--cc=vivien.didelot@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox