diff options
author | Ido Schimmel <idosch@nvidia.com> | 2021-03-24 23:14:24 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-03-25 02:34:58 +0300 |
commit | ffd3e9b07b9ee3242fa5f5bc76385b6a0e69437d (patch) | |
tree | d5909c52de11f69d884bee7e807ff12be135c2cb /tools/testing/selftests/net | |
parent | 861584724c44e63bfb684090c70ade660dae6c69 (diff) | |
download | linux-ffd3e9b07b9ee3242fa5f5bc76385b6a0e69437d.tar.xz |
selftests: mlxsw: Add resilient nexthop groups configuration tests
Test that unsupported resilient nexthop group configurations are
rejected and that offload / trap indication is correctly set on nexthop
buckets in a resilient group.
Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Reviewed-by: Petr Machata <petrm@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/testing/selftests/net')
-rw-r--r-- | tools/testing/selftests/net/forwarding/lib.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/testing/selftests/net/forwarding/lib.sh b/tools/testing/selftests/net/forwarding/lib.sh index be71012b8fc5..05c05e02bade 100644 --- a/tools/testing/selftests/net/forwarding/lib.sh +++ b/tools/testing/selftests/net/forwarding/lib.sh @@ -353,6 +353,11 @@ wait_for_offload() "$@" | grep -q offload } +wait_for_trap() +{ + "$@" | grep -q trap +} + until_counter_is() { local expr=$1; shift |