netdevsim: Add support for ethtool stats and add
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest3 patches 4 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | netdevsim: Support ethtool statsdrivers/ | +58 | 0 replies | |
| 2/3 | netdevsim: Add mock stats for ethtooldrivers/ drivers/ drivers/ | +138 | 0 replies | |
| 3/3 | selftests: netdevsim: Add test for ethtool statstools/ tools/ tools/ | +50 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [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, [email protected], 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
Signature · 1 line
2.50.1