[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <CABJS2x60cwpoDXTex0M+CyOepWbdvX8-RcwFmBu-vxvNywW0tw@mail.gmail.com>
Date: Mon, 14 Jul 2025 12:46:15 +0530
From: Naveen Mamindlapalli <naveen130617.lkml@...il.com>
To: netdev@...r.kernel.org, Jakub Kicinski <kuba@...nel.org>, Andrew Lunn <andrew@...n.ch>,
"David S. Miller" <davem@...emloft.net>, Eric Dumazet <edumazet@...gle.com>
Subject: Clarification: ethtool -S stats persistence across ifconfig down/up
Hi All,
I am trying to better understand the expected behavior of Netdev
statistics reported via `ethtool -S`.
Specifically, I would like to clarify:
Are drivers expected to retain `ethtool -S` statistics across
interface down/up cycles (i.e., ifconfig ethX down followed by
ifconfig ethX up)?
>From my reading of the kernel documentation:
- The file Documentation/networking/statistics.rst states that
standard netdev statistics (such as those shown via ip -s link) are
expected to persist across interface resets.
- However, Documentation/networking/ethtool-netlink.rst (as of Linux
v6.15) does not mention any such requirement for `ethtool -S`
statistics.
So my understanding is that `ethtool -S` statistics may reset across
down/up, depending on how the hardware and driver implement the stats.
If this is the intended and accepted behavior, would it make sense to:
- Document this explicitly in ethtool-netlink.rst or statistics.rst?
This clarification would be helpful for the developers and users.
Thanks,
Naveen
Powered by blists - more mailing lists