From: Dennis Chen <dechen@redhat.com>
To: netdev@vger.kernel.org
Cc: dechen@redhat.com, dchen27@ncsu.edu, kuba@kernel.org,
davem@davemloft.net, edumazet@google.com, pabeni@redhat.com,
andrew+netdev@lunn.ch, petrm@nvidia.com
Subject: [PATCH net-next 0/3] netdevsim: Add support for ethtool stats and add
Date: Tue, 5 Aug 2025 17:33:53 -0400 [thread overview]
Message-ID: <20250805213356.3348348-1-dechen@redhat.com> (raw)
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
next reply other threads:[~2025-08-05 21:52 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-08-05 21:33 Dennis Chen [this message]
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
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=20250805213356.3348348-1-dechen@redhat.com \
--to=dechen@redhat.com \
--cc=andrew+netdev@lunn.ch \
--cc=davem@davemloft.net \
--cc=dchen27@ncsu.edu \
--cc=edumazet@google.com \
--cc=kuba@kernel.org \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=petrm@nvidia.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;
as well as URLs for NNTP newsgroup(s).