Skip to content

netdevsim: Add support for ethtool stats and add

Dennis Chen netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3netdevsim: Support ethtool statsdrivers/net/netdevsim/ethtool.c+58 -00 replies
2/3netdevsim: Add mock stats for ethtooldrivers/net/netdevsim/ethtool.c drivers/net/netdevsim/netdev.c drivers/net/netdevsim/netdevsim.h+138 -10 replies
3/3selftests: netdevsim: Add test for ethtool statstools/testing/selftests/drivers/net/netdevsim/Makefile tools/testing/selftests/drivers/net/netdevsim/ethtool-common.sh tools/testing/selftests/drivers/net/netdevsim/ethtool-stats.sh+50 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

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