]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
selftests: mlxsw: resource_scale: Invoke for Spectrum-3
authorAmit Cohen <amitc@mellanox.com>
Thu, 27 Feb 2020 07:50:21 +0000 (08:50 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 27 Feb 2020 19:10:15 +0000 (11:10 -0800)
The scale test for Spectrum-2 should be invoked for Spectrum-2 and
Spectrum-3. Add the appropriate device ID.

Signed-off-by: Amit Cohen <amitc@mellanox.com>
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/drivers/net/mlxsw/spectrum-2/resource_scale.sh

index 7b2acba82a49c3404fae9380c0794b5bc97c90b5..fd583a171db7ab548e498a53e65157dd00b53d68 100755 (executable)
@@ -8,8 +8,9 @@ source $lib_dir/lib.sh
 source $lib_dir/tc_common.sh
 source $lib_dir/devlink_lib.sh
 
-if [ "$DEVLINK_VIDDID" != "15b3:cf6c" ]; then
-       echo "SKIP: test is tailored for Mellanox Spectrum-2"
+if [[ "$DEVLINK_VIDDID" != "15b3:cf6c" && \
+       "$DEVLINK_VIDDID" != "15b3:cf70" ]]; then
+       echo "SKIP: test is tailored for Mellanox Spectrum-2 and Spectrum-3"
        exit 1
 fi