Skip to content

mlxsw: spectrum: Implement loopback ethtool feature

Ido Schimmel netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3mlxsw: reg: Add Port Physical Loopback Registerdrivers/net/ethernet/mellanox/mlxsw/reg.h+37 -00 replies
2/3mlxsw: spectrum: Implement loopback ethtool featuredrivers/net/ethernet/mellanox/mlxsw/spectrum.c+33 -20 replies
3/3selftests: Add loopback testtools/testing/selftests/net/forwarding/loopback.sh+94 -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] mlxsw: spectrum: Implement loopback ethtool feature

From: Ido Schimmel <[email protected]>

This patchset from Jiri allows users to enable loopback feature for individual ports using ethtool. The loopback feature is useful for testing purposes and will also be used by upcoming patchsets to enable the monitoring of buffer drops.

Patch #1 adds the relevant device register.

Patch #2 Implements support in the driver.

Patch #3 adds a selftest.

Jiri Pirko (3):
mlxsw: reg: Add Port Physical Loopback Register
mlxsw: spectrum: Implement loopback ethtool feature
selftests: Add loopback test

 drivers/net/ethernet/mellanox/mlxsw/reg.h     | 37 ++++++++
 .../net/ethernet/mellanox/mlxsw/spectrum.c    | 35 ++++++-
 .../selftests/net/forwarding/loopback.sh      | 94 +++++++++++++++++++
 3 files changed, 164 insertions(+), 2 deletions(-)
 create mode 100755 tools/testing/selftests/net/forwarding/loopback.sh
Signature · 1 line
2.20.1