forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-10 cde9070d9970eef1f7ec2360586c802a16230ad8
kernel/tools/testing/selftests/drivers/net/mlxsw/spectrum/resource_scale.sh
....@@ -1,9 +1,11 @@
11 #!/bin/bash
22 # SPDX-License-Identifier: GPL-2.0
33
4
+lib_dir=$(dirname $0)/../../../../net/forwarding
5
+
46 NUM_NETIFS=6
5
-source ../../../../net/forwarding/lib.sh
6
-source ../../../../net/forwarding/tc_common.sh
7
+source $lib_dir/lib.sh
8
+source $lib_dir/tc_common.sh
79 source devlink_lib_spectrum.sh
810
911 current_test=""
....@@ -20,7 +22,7 @@
2022 devlink_sp_read_kvd_defaults
2123 trap cleanup EXIT
2224
23
-ALL_TESTS="router tc_flower mirror_gre"
25
+ALL_TESTS="router tc_flower mirror_gre tc_police"
2426 for current_test in ${TESTS:-$ALL_TESTS}; do
2527 source ${current_test}_scale.sh
2628