Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

selftests: mlxsw: Check devlink device before running test

The scale test for Spectrum-2 should only be invoked for Spectrum-2.
Skip the test otherwise.

Signed-off-by: Danielle Ratson <danieller@mellanox.com>
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Danielle Ratson and committed by
David S. Miller
b22b0b0b 0fed96fa

+5
+5
tools/testing/selftests/drivers/net/mlxsw/spectrum-2/resource_scale.sh
··· 8 8 source $lib_dir/tc_common.sh 9 9 source $lib_dir/devlink_lib.sh 10 10 11 + if [ "$DEVLINK_VIDDID" != "15b3:cf6c" ]; then 12 + echo "SKIP: test is tailored for Mellanox Spectrum-2" 13 + exit 1 14 + fi 15 + 11 16 current_test="" 12 17 13 18 cleanup()