From: Ido Schimmel <ido...@mellanox.com> Amit says:
This patchset adds a selftest which tests different speeds and auto-negotiation. Patch #1 Adds functions that retrieve information from ethtool. Patch #2 Adds option to wait for device with limit of iterations. Patch #3 Adds the test. Amit Cohen (3): selftests: mlxsw: Add ethtool_lib.sh selftests: mlxsw: lib.sh: Add wait for dev with timeout selftests: mlxsw: Add speed and auto-negotiation test .../selftests/drivers/net/mlxsw/ethtool.sh | 308 ++++++++++++++++++ .../selftests/net/forwarding/ethtool_lib.sh | 91 ++++++ tools/testing/selftests/net/forwarding/lib.sh | 28 +- 3 files changed, 424 insertions(+), 3 deletions(-) create mode 100755 tools/testing/selftests/drivers/net/mlxsw/ethtool.sh create mode 100755 tools/testing/selftests/net/forwarding/ethtool_lib.sh -- 2.20.1