diff options
author | Danielle Ratson <danieller@nvidia.com> | 2021-10-26 12:42:22 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-10-26 13:35:58 +0100 |
commit | 152f98e7c5cb472e37d44ff8bb07029e77e9508d (patch) | |
tree | 921044a4c20d7346aa34179de6d178a43b124a0b /tools/testing/selftests/drivers/net/mlxsw/spectrum-2/resource_scale.sh | |
parent | mlxsw: spectrum_router: Expose RIF MAC profiles to devlink resource (diff) | |
download | wireguard-linux-152f98e7c5cb472e37d44ff8bb07029e77e9508d.tar.xz wireguard-linux-152f98e7c5cb472e37d44ff8bb07029e77e9508d.zip |
selftests: mlxsw: Add a scale test for RIF MAC profiles
Query the maximum number of supported RIF MAC profiles using
devlink-resource and verify that all available MAC profiles can be utilized
and that an error is generated when user space tries to exceed this number.
Output example in Spectrum-2:
$ TESTS='rif_mac_profile' ./resource_scale.sh
TEST: 'rif_mac_profile' 4 [ OK ]
TEST: 'rif_mac_profile' overflow 5 [ OK ]
Signed-off-by: Danielle Ratson <danieller@nvidia.com>
Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/testing/selftests/drivers/net/mlxsw/spectrum-2/resource_scale.sh')
-rwxr-xr-x | tools/testing/selftests/drivers/net/mlxsw/spectrum-2/resource_scale.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/drivers/net/mlxsw/spectrum-2/resource_scale.sh b/tools/testing/selftests/drivers/net/mlxsw/spectrum-2/resource_scale.sh index 02b7eea19743..e9f65bd2e299 100755 --- a/tools/testing/selftests/drivers/net/mlxsw/spectrum-2/resource_scale.sh +++ b/tools/testing/selftests/drivers/net/mlxsw/spectrum-2/resource_scale.sh @@ -25,7 +25,7 @@ cleanup() trap cleanup EXIT -ALL_TESTS="router tc_flower mirror_gre tc_police port" +ALL_TESTS="router tc_flower mirror_gre tc_police port rif_mac_profile" for current_test in ${TESTS:-$ALL_TESTS}; do RET_FIN=0 source ${current_test}_scale.sh |