netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next 0/3] netdevsim: Add support for ethtool stats and add
@ 2025-08-05 21:33 Dennis Chen
  2025-08-05 21:33 ` [PATCH net-next 1/3] netdevsim: Support ethtool stats Dennis Chen
  2025-08-05 22:55 ` [PATCH net-next 0/3] netdevsim: Add support for ethtool stats and add Jakub Kicinski
  0 siblings, 2 replies; 8+ messages in thread
From: Dennis Chen @ 2025-08-05 21:33 UTC (permalink / raw)
  To: netdev; +Cc: dechen, dchen27, kuba, davem, edumazet, pabeni, andrew+netdev,
	petrm

This series adds support for querying standard interface stats and
driver-specific stats with ethtool -S. This allows hardware-independent
testing of ethtool stats reporting. Driver-specific stats are incremented
every 100ms once enabled through a debugfs toggle.

Also adds a selftest for ethtool -S for netdevsim.

The implementation of mock stats is heavily based on the mock L3 stats 
support added by commit 1a6d7ae7d63c45("netdevsim: Introduce support for
L3 offload xstats").

Note: Further replies will come from my school email address,
dchen27@ncsu.edu, as I will soon lose access to my Red Hat email.

Dennis Chen (2):
  netdevsim: Add mock stats for ethtool
  selftests: netdevsim: Add test for ethtool stats

Kamal Heib (1):
  netdevsim: Support ethtool stats

 drivers/net/netdevsim/ethtool.c               | 183 ++++++++++++++++++
 drivers/net/netdevsim/netdev.c                |   1 +
 drivers/net/netdevsim/netdevsim.h             |  11 ++
 .../selftests/drivers/net/netdevsim/Makefile  |   1 +
 .../drivers/net/netdevsim/ethtool-common.sh   |  13 ++
 .../drivers/net/netdevsim/ethtool-stats.sh    |  36 ++++
 6 files changed, 245 insertions(+)
 create mode 100755 tools/testing/selftests/drivers/net/netdevsim/ethtool-stats.sh

-- 
2.50.1


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

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

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-05 21:33 [PATCH net-next 0/3] netdevsim: Add support for ethtool stats and add Dennis Chen
2025-08-05 21:33 ` [PATCH net-next 1/3] netdevsim: Support ethtool stats Dennis Chen
2025-08-05 21:33   ` [PATCH net-next 2/3] netdevsim: Add mock stats for ethtool Dennis Chen
2025-08-05 21:33     ` [PATCH net-next 3/3] selftests: netdevsim: Add test for ethtool stats Dennis Chen
2025-08-05 22:55 ` [PATCH net-next 0/3] netdevsim: Add support for ethtool stats and add Jakub Kicinski
2025-08-06 14:05   ` Dennis Chen
2025-08-06 14:48     ` Jakub Kicinski
2025-08-07  9:48       ` Simon Horman

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).