diff options
author | Petr Machata <petrm@mellanox.com> | 2019-03-28 12:12:23 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-03-28 17:20:52 -0700 |
commit | 2cca8751af36d5f84eaa05d63632afa25a523b69 (patch) | |
tree | 66548fb9c419e0d020146b1c018e42ae9d444b15 /tools/testing/selftests/drivers/net/mlxsw/spectrum/resource_scale.sh | |
parent | 2fcbc0b15e39019e84863a69c822b3c3103cfd56 (diff) | |
download | linux-2cca8751af36d5f84eaa05d63632afa25a523b69.tar.bz2 |
selftests: forwarding: devlink_lib: Avoid double sourcing of lib.sh
Don't source lib.sh twice and make the script work with ifnames passed
on the command line.
Signed-off-by: Petr Machata <petrm@mellanox.com>
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/testing/selftests/drivers/net/mlxsw/spectrum/resource_scale.sh')
-rwxr-xr-x | tools/testing/selftests/drivers/net/mlxsw/spectrum/resource_scale.sh | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/testing/selftests/drivers/net/mlxsw/spectrum/resource_scale.sh b/tools/testing/selftests/drivers/net/mlxsw/spectrum/resource_scale.sh index e7ffc79561b7..43ba1b438f6d 100755 --- a/tools/testing/selftests/drivers/net/mlxsw/spectrum/resource_scale.sh +++ b/tools/testing/selftests/drivers/net/mlxsw/spectrum/resource_scale.sh @@ -1,8 +1,11 @@ #!/bin/bash # SPDX-License-Identifier: GPL-2.0 +lib_dir=$(dirname $0)/../../../../net/forwarding + NUM_NETIFS=6 -source ../../../../net/forwarding/tc_common.sh +source $lib_dir/lib.sh +source $lib_dir/tc_common.sh source devlink_lib_spectrum.sh current_test="" |