netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Clarification: ethtool -S stats persistence across ifconfig down/up
@ 2025-07-14  7:16 Naveen Mamindlapalli
  2025-07-14 13:21 ` Andrew Lunn
  0 siblings, 1 reply; 3+ messages in thread
From: Naveen Mamindlapalli @ 2025-07-14  7:16 UTC (permalink / raw)
  To: netdev, Jakub Kicinski, Andrew Lunn, David S. Miller,
	Eric Dumazet

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2025-07-15 12:48 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-14  7:16 Clarification: ethtool -S stats persistence across ifconfig down/up Naveen Mamindlapalli
2025-07-14 13:21 ` Andrew Lunn
2025-07-15 12:48   ` Naveen Mamindlapalli

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).