Skip to content

selftests: mlxsw: Fixes

Petr Machata netdev 1 version Applied

Status from this message: This series was applied to netdev/net-next.git (refs/heads/master):

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 0 repliesApplied 6/6

Patches in v1 All 6 applied

#Subject and filesSizeRepliesApplied
1/6selftests: net: mirror_gre_vlan_bridge_1q: Make an FDB entry statictools/testing/selftests/net/forwarding/mirror_gre_vlan_bridge_1q.sh+1 -10 repliesApplied
2/6selftests: mlxsw: Remove a redundant if statement in port_scale testtools/testing/selftests/drivers/net/mlxsw/port_scale.sh+1 -50 repliesApplied
3/6selftests: mlxsw: Remove a redundant if statement in tc_flower_scale testtools/testing/selftests/drivers/net/mlxsw/tc_flower_scale.sh+1 -50 repliesApplied
4/6selftests: mlxsw: Return correct error code in resource scale teststools/testing/selftests/drivers/net/mlxsw/spectrum-2/resource_scale.sh tools/testing/selftests/drivers/net/mlxsw/spectrum/resource_scale.sh+6 -20 repliesApplied
5/6selftests: mlxsw: Increase the tolerance of backlog builduptools/testing/selftests/drivers/net/mlxsw/sch_red_core.sh+2 -20 repliesApplied
6/6selftests: mlxsw: Fix mausezahn invocation in ERSPAN scale testtools/testing/selftests/drivers/net/mlxsw/mirror_gre_scale.sh tools/testing/selftests/net/forwarding/mirror_lib.sh+19 -30 repliesApplied

Reviews trailers per patch

5 of 6 patches have a Reviewed-by or Acked-by.

PatchIdo SchimmelPetr MachataJiri Pirko
1/6R-b
2/6R-b
3/6R-b
4/6R-b
5/6A-b
6/6

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v1 thread

Cover letter [PATCH net-next 0/6] selftests: mlxsw: Fixes

This patch set carries fixes to selftest issues that we have hit in our nightly regression run. Almost all are in mlxsw selftests, though one is in a generic forwarding selftest.

- In patch #1, in an ERSPAN test, install an FDB entry as static instead of (implicitly) as local.

- In the mlxsw resource-scale test, an if statement overrides the value of $?, which is supposed to contain the result of the test. As a result, the resource scale test can spuriously pass.

In patches #2 and #3, remove the if statements to fix the issue in, respectively, port_scale test and tc_flower_scale tests.

- Again in the mlxsw resource-scale test, when more then one sub-test is run, a successful sub-test overrides any previous failures. This causes a spurious pass of the overall test. This is fixed in patch #4.

- In patch #5, increase a tolerance in a mlxsw-specific RED backlog test. This test is very noisy, due to rounding errors and the unpredictability of software traffic generation. By bumping the tolerance from 5 % to 10, get the failure rate to zero. This shouldn't impact the accuracy, mistakes in backlog configuration (e.g. due to wrong cell size) are likely to cause a much larger discrepancy.

- In patch #6, fix mausezahn invocation in the mlxsw ERSPAN scale test. The test failed because of the wrong invocation.

Danielle Ratson (3):
selftests: mlxsw: Remove a redundant if statement in port_scale test
selftests: mlxsw: Remove a redundant if statement in tc_flower_scale
test
selftests: mlxsw: Return correct error code in resource scale tests

Petr Machata (3):
selftests: net: mirror_gre_vlan_bridge_1q: Make an FDB entry static
selftests: mlxsw: Increase the tolerance of backlog buildup
selftests: mlxsw: Fix mausezahn invocation in ERSPAN scale test

 .../drivers/net/mlxsw/mirror_gre_scale.sh     |  3 ++-
 .../selftests/drivers/net/mlxsw/port_scale.sh |  6 +-----
 .../drivers/net/mlxsw/sch_red_core.sh         |  4 ++--
 .../net/mlxsw/spectrum-2/resource_scale.sh    |  4 +++-
 .../net/mlxsw/spectrum/resource_scale.sh      |  4 +++-
 .../drivers/net/mlxsw/tc_flower_scale.sh      |  6 +-----
 .../forwarding/mirror_gre_vlan_bridge_1q.sh   |  2 +-
 .../selftests/net/forwarding/mirror_lib.sh    | 19 +++++++++++++++++--
 8 files changed, 30 insertions(+), 18 deletions(-)
Signature · 1 line
2.26.2