[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250805213356.3348348-1-dechen@redhat.com>
Date: Tue, 5 Aug 2025 17:33:53 -0400
From: Dennis Chen <dechen@...hat.com>
To: netdev@...r.kernel.org
Cc: dechen@...hat.com,
dchen27@...u.edu,
kuba@...nel.org,
davem@...emloft.net,
edumazet@...gle.com,
pabeni@...hat.com,
andrew+netdev@...n.ch,
petrm@...dia.com
Subject: [PATCH net-next 0/3] netdevsim: Add support for ethtool stats and add
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@...u.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
Powered by blists - more mailing lists