ShellCheck - shell script analysis tool version: 0.11.0 license: GNU General Public License, version 3 website: https://www.shellcheck.net Redirect to /tmp/tmp.Jf25lIYJzS and /tmp/tmp.tsjvrIhG6u Tree base: 6d2f142b1e4b ("net: hns3: fix double free issue for tx spare buffer") Now at: ba014309a486 ("selftests: mlxsw: tc_restrictions: Fix test failure with new iproute2") ====== Checking before the patch ====== Checking tools/testing/selftests/drivers/net/mlxsw/tc_restrictions.sh - 48b53bc82d1557f86e57bb7c91f05cbdc7557fea71dac34db7b767f32d66ead2 In tc_restrictions.sh line 4: lib_dir=$(dirname $0)/../../../net/forwarding ^-- SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: lib_dir=$(dirname "$0")/../../../net/forwarding In tc_restrictions.sh line 6: ALL_TESTS=" ^-------^ SC2034 (warning): ALL_TESTS appears unused. Verify use (or export if used externally). In tc_restrictions.sh line 18: NUM_NETIFS=2 ^--------^ SC2034 (warning): NUM_NETIFS appears unused. Verify use (or export if used externally). In tc_restrictions.sh line 20: source $lib_dir/tc_common.sh ^-------------------^ SC1091 (info): Not following: ./tc_common.sh: openBinaryFile: does not exist (No such file or directory) ^------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: source "$lib_dir"/tc_common.sh In tc_restrictions.sh line 21: source $lib_dir/lib.sh ^-------------^ SC1091 (info): Not following: ./lib.sh: openBinaryFile: does not exist (No such file or directory) ^------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: source "$lib_dir"/lib.sh In tc_restrictions.sh line 22: source $lib_dir/devlink_lib.sh ^---------------------^ SC1091 (info): Not following: ./devlink_lib.sh: openBinaryFile: does not exist (No such file or directory) ^------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: source "$lib_dir"/devlink_lib.sh In tc_restrictions.sh line 27: simple_if_init $swp1 192.0.2.1/24 ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: simple_if_init "$swp1" 192.0.2.1/24 In tc_restrictions.sh line 28: simple_if_init $swp2 192.0.2.2/24 ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: simple_if_init "$swp2" 192.0.2.2/24 In tc_restrictions.sh line 31: switch_destroy() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In tc_restrictions.sh line 33: simple_if_fini $swp2 192.0.2.2/24 ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: simple_if_fini "$swp2" 192.0.2.2/24 In tc_restrictions.sh line 34: simple_if_fini $swp1 192.0.2.1/24 ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: simple_if_fini "$swp1" 192.0.2.1/24 In tc_restrictions.sh line 37: shared_block_drop_test() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In tc_restrictions.sh line 44: tc qdisc add dev $swp1 ingress_block 22 clsact ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc qdisc add dev "$swp1" ingress_block 22 clsact In tc_restrictions.sh line 51: tc qdisc add dev $swp2 ingress_block 22 clsact ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc qdisc add dev "$swp2" ingress_block 22 clsact In tc_restrictions.sh line 54: tc qdisc del dev $swp2 clsact ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc qdisc del dev "$swp2" clsact In tc_restrictions.sh line 56: tc qdisc add dev $swp2 egress_block 22 clsact ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc qdisc add dev "$swp2" egress_block 22 clsact In tc_restrictions.sh line 61: tc qdisc add dev $swp2 egress_block 22 clsact ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc qdisc add dev "$swp2" egress_block 22 clsact In tc_restrictions.sh line 68: tc qdisc del dev $swp1 clsact ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc qdisc del dev "$swp1" clsact In tc_restrictions.sh line 70: tc qdisc add dev $swp1 egress_block 22 clsact ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc qdisc add dev "$swp1" egress_block 22 clsact In tc_restrictions.sh line 79: tc qdisc del dev $swp2 clsact ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc qdisc del dev "$swp2" clsact In tc_restrictions.sh line 80: tc qdisc del dev $swp1 clsact ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc qdisc del dev "$swp1" clsact In tc_restrictions.sh line 85: egress_redirect_test() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In tc_restrictions.sh line 92: tc qdisc add dev $swp1 ingress_block 22 clsact ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc qdisc add dev "$swp1" ingress_block 22 clsact In tc_restrictions.sh line 97: action mirred egress redirect dev $swp2 ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: action mirred egress redirect dev "$swp2" In tc_restrictions.sh line 100: tc qdisc add dev $swp2 ingress_block 22 clsact ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc qdisc add dev "$swp2" ingress_block 22 clsact In tc_restrictions.sh line 103: tc qdisc del dev $swp2 clsact ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc qdisc del dev "$swp2" clsact In tc_restrictions.sh line 105: tc qdisc add dev $swp2 egress_block 22 clsact ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc qdisc add dev "$swp2" egress_block 22 clsact In tc_restrictions.sh line 110: tc qdisc add dev $swp2 egress_block 22 clsact ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc qdisc add dev "$swp2" egress_block 22 clsact In tc_restrictions.sh line 115: action mirred egress redirect dev $swp2 ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: action mirred egress redirect dev "$swp2" In tc_restrictions.sh line 118: tc qdisc del dev $swp1 clsact ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc qdisc del dev "$swp1" clsact In tc_restrictions.sh line 120: tc qdisc add dev $swp1 egress_block 22 clsact ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc qdisc add dev "$swp1" egress_block 22 clsact In tc_restrictions.sh line 125: action mirred egress redirect dev $swp2 ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: action mirred egress redirect dev "$swp2" In tc_restrictions.sh line 128: tc qdisc del dev $swp2 clsact ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc qdisc del dev "$swp2" clsact In tc_restrictions.sh line 132: action mirred egress redirect dev $swp2 ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: action mirred egress redirect dev "$swp2" In tc_restrictions.sh line 135: tc qdisc del dev $swp1 clsact ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc qdisc del dev "$swp1" clsact In tc_restrictions.sh line 140: multi_mirror_test() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In tc_restrictions.sh line 147: tc qdisc add dev $swp1 clsact ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc qdisc add dev "$swp1" clsact In tc_restrictions.sh line 149: tc filter add dev $swp1 ingress protocol ip pref 1 handle 101 flower \ ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc filter add dev "$swp1" ingress protocol ip pref 1 handle 101 flower \ In tc_restrictions.sh line 151: action mirred egress mirror dev $swp2 ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: action mirred egress mirror dev "$swp2" In tc_restrictions.sh line 154: tc filter del dev $swp1 ingress protocol ip pref 1 handle 101 flower ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc filter del dev "$swp1" ingress protocol ip pref 1 handle 101 flower In tc_restrictions.sh line 156: tc filter add dev $swp1 ingress protocol ip pref 1 handle 101 flower \ ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc filter add dev "$swp1" ingress protocol ip pref 1 handle 101 flower \ In tc_restrictions.sh line 158: action mirred egress mirror dev $swp2 \ ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: action mirred egress mirror dev "$swp2" \ In tc_restrictions.sh line 159: action mirred egress mirror dev $swp1 ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: action mirred egress mirror dev "$swp1" In tc_restrictions.sh line 162: tc qdisc del dev $swp1 clsact ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc qdisc del dev "$swp1" clsact In tc_restrictions.sh line 167: matchall_sample_egress_test() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In tc_restrictions.sh line 175: tc qdisc add dev $swp1 clsact ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc qdisc add dev "$swp1" clsact In tc_restrictions.sh line 177: tc filter add dev $swp1 ingress protocol all pref 1 handle 101 \ ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc filter add dev "$swp1" ingress protocol all pref 1 handle 101 \ In tc_restrictions.sh line 181: tc filter del dev $swp1 ingress protocol all pref 1 handle 101 matchall ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc filter del dev "$swp1" ingress protocol all pref 1 handle 101 matchall In tc_restrictions.sh line 183: tc filter add dev $swp1 egress protocol all pref 1 handle 101 \ ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc filter add dev "$swp1" egress protocol all pref 1 handle 101 \ In tc_restrictions.sh line 187: tc qdisc del dev $swp1 clsact ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc qdisc del dev "$swp1" clsact In tc_restrictions.sh line 192: matchall_behind_flower_ingress_test() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In tc_restrictions.sh line 202: tc qdisc add dev $swp1 clsact ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc qdisc add dev "$swp1" clsact In tc_restrictions.sh line 204: tc filter add dev $swp1 ingress protocol ip pref 10 handle 101 flower \ ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc filter add dev "$swp1" ingress protocol ip pref 10 handle 101 flower \ In tc_restrictions.sh line 207: tc filter add dev $swp1 ingress protocol all pref 9 handle 102 \ ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc filter add dev "$swp1" ingress protocol all pref 9 handle 102 \ In tc_restrictions.sh line 208: matchall skip_sw action $action_args ^----------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: matchall skip_sw action "$action_args" In tc_restrictions.sh line 211: tc filter del dev $swp1 ingress protocol all pref 9 handle 102 matchall ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc filter del dev "$swp1" ingress protocol all pref 9 handle 102 matchall In tc_restrictions.sh line 213: tc filter add dev $swp1 ingress protocol all pref 11 handle 102 \ ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc filter add dev "$swp1" ingress protocol all pref 11 handle 102 \ In tc_restrictions.sh line 214: matchall skip_sw action $action_args ^----------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: matchall skip_sw action "$action_args" In tc_restrictions.sh line 217: tc filter del dev $swp1 ingress protocol ip pref 10 handle 101 flower ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc filter del dev "$swp1" ingress protocol ip pref 10 handle 101 flower In tc_restrictions.sh line 219: tc filter add dev $swp1 ingress protocol all pref 9 handle 102 \ ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc filter add dev "$swp1" ingress protocol all pref 9 handle 102 \ In tc_restrictions.sh line 220: matchall skip_sw action $action_args ^----------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: matchall skip_sw action "$action_args" In tc_restrictions.sh line 222: tc filter add dev $swp1 ingress protocol ip pref 10 handle 101 flower \ ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc filter add dev "$swp1" ingress protocol ip pref 10 handle 101 flower \ In tc_restrictions.sh line 226: tc filter del dev $swp1 ingress protocol ip pref 10 handle 101 flower ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc filter del dev "$swp1" ingress protocol ip pref 10 handle 101 flower In tc_restrictions.sh line 228: tc filter add dev $swp1 ingress protocol ip pref 8 handle 101 flower \ ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc filter add dev "$swp1" ingress protocol ip pref 8 handle 101 flower \ In tc_restrictions.sh line 232: tc qdisc del dev $swp1 clsact ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc qdisc del dev "$swp1" clsact In tc_restrictions.sh line 237: matchall_mirror_behind_flower_ingress_test() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In tc_restrictions.sh line 242: matchall_sample_behind_flower_ingress_test() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In tc_restrictions.sh line 247: matchall_behind_flower_egress_test() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In tc_restrictions.sh line 256: tc qdisc add dev $swp1 clsact ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc qdisc add dev "$swp1" clsact In tc_restrictions.sh line 258: tc filter add dev $swp1 egress protocol ip pref 10 handle 101 flower \ ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc filter add dev "$swp1" egress protocol ip pref 10 handle 101 flower \ In tc_restrictions.sh line 261: tc filter add dev $swp1 egress protocol all pref 11 handle 102 \ ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc filter add dev "$swp1" egress protocol all pref 11 handle 102 \ In tc_restrictions.sh line 262: matchall skip_sw action $action_args ^----------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: matchall skip_sw action "$action_args" In tc_restrictions.sh line 265: tc filter del dev $swp1 egress protocol all pref 11 handle 102 matchall ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc filter del dev "$swp1" egress protocol all pref 11 handle 102 matchall In tc_restrictions.sh line 267: tc filter add dev $swp1 egress protocol all pref 9 handle 102 \ ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc filter add dev "$swp1" egress protocol all pref 9 handle 102 \ In tc_restrictions.sh line 268: matchall skip_sw action $action_args ^----------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: matchall skip_sw action "$action_args" In tc_restrictions.sh line 271: tc filter del dev $swp1 egress protocol ip pref 10 handle 101 flower ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc filter del dev "$swp1" egress protocol ip pref 10 handle 101 flower In tc_restrictions.sh line 273: tc filter add dev $swp1 egress protocol all pref 11 handle 102 \ ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc filter add dev "$swp1" egress protocol all pref 11 handle 102 \ In tc_restrictions.sh line 274: matchall skip_sw action $action_args ^----------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: matchall skip_sw action "$action_args" In tc_restrictions.sh line 276: tc filter add dev $swp1 egress protocol ip pref 10 handle 101 flower \ ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc filter add dev "$swp1" egress protocol ip pref 10 handle 101 flower \ In tc_restrictions.sh line 280: tc filter del dev $swp1 egress protocol ip pref 10 handle 101 flower ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc filter del dev "$swp1" egress protocol ip pref 10 handle 101 flower In tc_restrictions.sh line 282: tc filter add dev $swp1 egress protocol ip pref 12 handle 101 flower \ ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc filter add dev "$swp1" egress protocol ip pref 12 handle 101 flower \ In tc_restrictions.sh line 286: tc qdisc del dev $swp1 clsact ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc qdisc del dev "$swp1" clsact In tc_restrictions.sh line 291: matchall_mirror_behind_flower_egress_test() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In tc_restrictions.sh line 296: matchall_proto_match_test() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In tc_restrictions.sh line 300: tc qdisc add dev $swp1 clsact ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc qdisc add dev "$swp1" clsact In tc_restrictions.sh line 302: tc filter add dev $swp1 ingress pref 1 proto ip handle 101 \ ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc filter add dev "$swp1" ingress pref 1 proto ip handle 101 \ In tc_restrictions.sh line 307: tc qdisc del dev $swp1 clsact ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc qdisc del dev "$swp1" clsact In tc_restrictions.sh line 312: police_limits_test() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In tc_restrictions.sh line 316: tc qdisc add dev $swp1 clsact ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc qdisc add dev "$swp1" clsact In tc_restrictions.sh line 318: tc filter add dev $swp1 ingress pref 1 proto ip handle 101 \ ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc filter add dev "$swp1" ingress pref 1 proto ip handle 101 \ In tc_restrictions.sh line 323: tc filter add dev $swp1 ingress pref 1 proto ip handle 101 \ ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc filter add dev "$swp1" ingress pref 1 proto ip handle 101 \ In tc_restrictions.sh line 328: tc filter add dev $swp1 ingress pref 1 proto ip handle 101 \ ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc filter add dev "$swp1" ingress pref 1 proto ip handle 101 \ In tc_restrictions.sh line 333: tc filter del dev $swp1 ingress protocol ip pref 1 handle 101 flower ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc filter del dev "$swp1" ingress protocol ip pref 1 handle 101 flower In tc_restrictions.sh line 335: tc filter add dev $swp1 ingress pref 1 proto ip handle 101 \ ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc filter add dev "$swp1" ingress pref 1 proto ip handle 101 \ In tc_restrictions.sh line 340: tc filter del dev $swp1 ingress protocol ip pref 1 handle 101 flower ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc filter del dev "$swp1" ingress protocol ip pref 1 handle 101 flower In tc_restrictions.sh line 342: tc filter add dev $swp1 ingress pref 1 proto ip handle 101 \ ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc filter add dev "$swp1" ingress pref 1 proto ip handle 101 \ In tc_restrictions.sh line 347: tc filter add dev $swp1 ingress pref 1 proto ip handle 101 \ ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc filter add dev "$swp1" ingress pref 1 proto ip handle 101 \ In tc_restrictions.sh line 352: tc filter del dev $swp1 ingress protocol ip pref 1 handle 101 flower ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc filter del dev "$swp1" ingress protocol ip pref 1 handle 101 flower In tc_restrictions.sh line 354: tc qdisc del dev $swp1 clsact ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc qdisc del dev "$swp1" clsact In tc_restrictions.sh line 359: multi_police_test() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In tc_restrictions.sh line 361: RET=0 ^-^ SC2034 (warning): RET appears unused. Verify use (or export if used externally). In tc_restrictions.sh line 366: tc qdisc add dev $swp1 clsact ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc qdisc add dev "$swp1" clsact In tc_restrictions.sh line 368: tc filter add dev $swp1 ingress protocol ip pref 1 handle 101 \ ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc filter add dev "$swp1" ingress protocol ip pref 1 handle 101 \ In tc_restrictions.sh line 373: tc filter del dev $swp1 ingress protocol ip pref 1 handle 101 flower ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc filter del dev "$swp1" ingress protocol ip pref 1 handle 101 flower In tc_restrictions.sh line 375: tc filter add dev $swp1 ingress protocol ip pref 1 handle 101 \ ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc filter add dev "$swp1" ingress protocol ip pref 1 handle 101 \ In tc_restrictions.sh line 381: tc qdisc del dev $swp1 clsact ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc qdisc del dev "$swp1" clsact In tc_restrictions.sh line 396: cleanup() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In tc_restrictions.sh line 414: exit $EXIT_STATUS ^----------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: exit "$EXIT_STATUS" For more information: https://www.shellcheck.net/wiki/SC2034 -- ALL_TESTS appears unused. Verify ... https://www.shellcheck.net/wiki/SC1091 -- Not following: ./devlink_lib.sh: ... https://www.shellcheck.net/wiki/SC2086 -- Double quote to prevent globbing ... ====== Checking the tree with the patch ====== Checking tools/testing/selftests/drivers/net/mlxsw/tc_restrictions.sh - 48b53bc82d1557f86e57bb7c91f05cbdc7557fea71dac34db7b767f32d66ead2 In tc_restrictions.sh line 4: lib_dir=$(dirname $0)/../../../net/forwarding ^-- SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: lib_dir=$(dirname "$0")/../../../net/forwarding In tc_restrictions.sh line 6: ALL_TESTS=" ^-------^ SC2034 (warning): ALL_TESTS appears unused. Verify use (or export if used externally). In tc_restrictions.sh line 18: NUM_NETIFS=2 ^--------^ SC2034 (warning): NUM_NETIFS appears unused. Verify use (or export if used externally). In tc_restrictions.sh line 20: source $lib_dir/tc_common.sh ^-------------------^ SC1091 (info): Not following: ./tc_common.sh: openBinaryFile: does not exist (No such file or directory) ^------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: source "$lib_dir"/tc_common.sh In tc_restrictions.sh line 21: source $lib_dir/lib.sh ^-------------^ SC1091 (info): Not following: ./lib.sh: openBinaryFile: does not exist (No such file or directory) ^------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: source "$lib_dir"/lib.sh In tc_restrictions.sh line 22: source $lib_dir/devlink_lib.sh ^---------------------^ SC1091 (info): Not following: ./devlink_lib.sh: openBinaryFile: does not exist (No such file or directory) ^------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: source "$lib_dir"/devlink_lib.sh In tc_restrictions.sh line 27: simple_if_init $swp1 192.0.2.1/24 ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: simple_if_init "$swp1" 192.0.2.1/24 In tc_restrictions.sh line 28: simple_if_init $swp2 192.0.2.2/24 ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: simple_if_init "$swp2" 192.0.2.2/24 In tc_restrictions.sh line 31: switch_destroy() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In tc_restrictions.sh line 33: simple_if_fini $swp2 192.0.2.2/24 ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: simple_if_fini "$swp2" 192.0.2.2/24 In tc_restrictions.sh line 34: simple_if_fini $swp1 192.0.2.1/24 ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: simple_if_fini "$swp1" 192.0.2.1/24 In tc_restrictions.sh line 37: shared_block_drop_test() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In tc_restrictions.sh line 44: tc qdisc add dev $swp1 ingress_block 22 clsact ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc qdisc add dev "$swp1" ingress_block 22 clsact In tc_restrictions.sh line 51: tc qdisc add dev $swp2 ingress_block 22 clsact ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc qdisc add dev "$swp2" ingress_block 22 clsact In tc_restrictions.sh line 54: tc qdisc del dev $swp2 clsact ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc qdisc del dev "$swp2" clsact In tc_restrictions.sh line 56: tc qdisc add dev $swp2 egress_block 22 clsact ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc qdisc add dev "$swp2" egress_block 22 clsact In tc_restrictions.sh line 61: tc qdisc add dev $swp2 egress_block 22 clsact ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc qdisc add dev "$swp2" egress_block 22 clsact In tc_restrictions.sh line 68: tc qdisc del dev $swp1 clsact ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc qdisc del dev "$swp1" clsact In tc_restrictions.sh line 70: tc qdisc add dev $swp1 egress_block 22 clsact ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc qdisc add dev "$swp1" egress_block 22 clsact In tc_restrictions.sh line 79: tc qdisc del dev $swp2 clsact ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc qdisc del dev "$swp2" clsact In tc_restrictions.sh line 80: tc qdisc del dev $swp1 clsact ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc qdisc del dev "$swp1" clsact In tc_restrictions.sh line 85: egress_redirect_test() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In tc_restrictions.sh line 92: tc qdisc add dev $swp1 ingress_block 22 clsact ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc qdisc add dev "$swp1" ingress_block 22 clsact In tc_restrictions.sh line 97: action mirred egress redirect dev $swp2 ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: action mirred egress redirect dev "$swp2" In tc_restrictions.sh line 100: tc qdisc add dev $swp2 ingress_block 22 clsact ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc qdisc add dev "$swp2" ingress_block 22 clsact In tc_restrictions.sh line 103: tc qdisc del dev $swp2 clsact ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc qdisc del dev "$swp2" clsact In tc_restrictions.sh line 105: tc qdisc add dev $swp2 egress_block 22 clsact ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc qdisc add dev "$swp2" egress_block 22 clsact In tc_restrictions.sh line 110: tc qdisc add dev $swp2 egress_block 22 clsact ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc qdisc add dev "$swp2" egress_block 22 clsact In tc_restrictions.sh line 115: action mirred egress redirect dev $swp2 ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: action mirred egress redirect dev "$swp2" In tc_restrictions.sh line 118: tc qdisc del dev $swp1 clsact ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc qdisc del dev "$swp1" clsact In tc_restrictions.sh line 120: tc qdisc add dev $swp1 egress_block 22 clsact ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc qdisc add dev "$swp1" egress_block 22 clsact In tc_restrictions.sh line 125: action mirred egress redirect dev $swp2 ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: action mirred egress redirect dev "$swp2" In tc_restrictions.sh line 128: tc qdisc del dev $swp2 clsact ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc qdisc del dev "$swp2" clsact In tc_restrictions.sh line 132: action mirred egress redirect dev $swp2 ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: action mirred egress redirect dev "$swp2" In tc_restrictions.sh line 135: tc qdisc del dev $swp1 clsact ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc qdisc del dev "$swp1" clsact In tc_restrictions.sh line 140: multi_mirror_test() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In tc_restrictions.sh line 147: tc qdisc add dev $swp1 clsact ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc qdisc add dev "$swp1" clsact In tc_restrictions.sh line 149: tc filter add dev $swp1 ingress protocol ip pref 1 handle 101 flower \ ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc filter add dev "$swp1" ingress protocol ip pref 1 handle 101 flower \ In tc_restrictions.sh line 151: action mirred egress mirror dev $swp2 ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: action mirred egress mirror dev "$swp2" In tc_restrictions.sh line 154: tc filter del dev $swp1 ingress protocol ip pref 1 handle 101 flower ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc filter del dev "$swp1" ingress protocol ip pref 1 handle 101 flower In tc_restrictions.sh line 156: tc filter add dev $swp1 ingress protocol ip pref 1 handle 101 flower \ ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc filter add dev "$swp1" ingress protocol ip pref 1 handle 101 flower \ In tc_restrictions.sh line 158: action mirred egress mirror dev $swp2 \ ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: action mirred egress mirror dev "$swp2" \ In tc_restrictions.sh line 159: action mirred egress mirror dev $swp1 ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: action mirred egress mirror dev "$swp1" In tc_restrictions.sh line 162: tc qdisc del dev $swp1 clsact ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc qdisc del dev "$swp1" clsact In tc_restrictions.sh line 167: matchall_sample_egress_test() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In tc_restrictions.sh line 175: tc qdisc add dev $swp1 clsact ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc qdisc add dev "$swp1" clsact In tc_restrictions.sh line 177: tc filter add dev $swp1 ingress protocol all pref 1 handle 101 \ ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc filter add dev "$swp1" ingress protocol all pref 1 handle 101 \ In tc_restrictions.sh line 181: tc filter del dev $swp1 ingress protocol all pref 1 handle 101 matchall ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc filter del dev "$swp1" ingress protocol all pref 1 handle 101 matchall In tc_restrictions.sh line 183: tc filter add dev $swp1 egress protocol all pref 1 handle 101 \ ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc filter add dev "$swp1" egress protocol all pref 1 handle 101 \ In tc_restrictions.sh line 187: tc qdisc del dev $swp1 clsact ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc qdisc del dev "$swp1" clsact In tc_restrictions.sh line 192: matchall_behind_flower_ingress_test() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In tc_restrictions.sh line 202: tc qdisc add dev $swp1 clsact ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc qdisc add dev "$swp1" clsact In tc_restrictions.sh line 204: tc filter add dev $swp1 ingress protocol ip pref 10 handle 101 flower \ ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc filter add dev "$swp1" ingress protocol ip pref 10 handle 101 flower \ In tc_restrictions.sh line 207: tc filter add dev $swp1 ingress protocol all pref 9 handle 102 \ ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc filter add dev "$swp1" ingress protocol all pref 9 handle 102 \ In tc_restrictions.sh line 208: matchall skip_sw action $action_args ^----------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: matchall skip_sw action "$action_args" In tc_restrictions.sh line 211: tc filter del dev $swp1 ingress protocol all pref 9 handle 102 matchall ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc filter del dev "$swp1" ingress protocol all pref 9 handle 102 matchall In tc_restrictions.sh line 213: tc filter add dev $swp1 ingress protocol all pref 11 handle 102 \ ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc filter add dev "$swp1" ingress protocol all pref 11 handle 102 \ In tc_restrictions.sh line 214: matchall skip_sw action $action_args ^----------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: matchall skip_sw action "$action_args" In tc_restrictions.sh line 217: tc filter del dev $swp1 ingress protocol ip pref 10 handle 101 flower ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc filter del dev "$swp1" ingress protocol ip pref 10 handle 101 flower In tc_restrictions.sh line 219: tc filter add dev $swp1 ingress protocol all pref 9 handle 102 \ ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc filter add dev "$swp1" ingress protocol all pref 9 handle 102 \ In tc_restrictions.sh line 220: matchall skip_sw action $action_args ^----------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: matchall skip_sw action "$action_args" In tc_restrictions.sh line 222: tc filter add dev $swp1 ingress protocol ip pref 10 handle 101 flower \ ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc filter add dev "$swp1" ingress protocol ip pref 10 handle 101 flower \ In tc_restrictions.sh line 226: tc filter del dev $swp1 ingress protocol ip pref 10 handle 101 flower ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc filter del dev "$swp1" ingress protocol ip pref 10 handle 101 flower In tc_restrictions.sh line 228: tc filter add dev $swp1 ingress protocol ip pref 8 handle 101 flower \ ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc filter add dev "$swp1" ingress protocol ip pref 8 handle 101 flower \ In tc_restrictions.sh line 232: tc qdisc del dev $swp1 clsact ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc qdisc del dev "$swp1" clsact In tc_restrictions.sh line 237: matchall_mirror_behind_flower_ingress_test() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In tc_restrictions.sh line 242: matchall_sample_behind_flower_ingress_test() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In tc_restrictions.sh line 247: matchall_behind_flower_egress_test() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In tc_restrictions.sh line 256: tc qdisc add dev $swp1 clsact ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc qdisc add dev "$swp1" clsact In tc_restrictions.sh line 258: tc filter add dev $swp1 egress protocol ip pref 10 handle 101 flower \ ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc filter add dev "$swp1" egress protocol ip pref 10 handle 101 flower \ In tc_restrictions.sh line 261: tc filter add dev $swp1 egress protocol all pref 11 handle 102 \ ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc filter add dev "$swp1" egress protocol all pref 11 handle 102 \ In tc_restrictions.sh line 262: matchall skip_sw action $action_args ^----------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: matchall skip_sw action "$action_args" In tc_restrictions.sh line 265: tc filter del dev $swp1 egress protocol all pref 11 handle 102 matchall ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc filter del dev "$swp1" egress protocol all pref 11 handle 102 matchall In tc_restrictions.sh line 267: tc filter add dev $swp1 egress protocol all pref 9 handle 102 \ ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc filter add dev "$swp1" egress protocol all pref 9 handle 102 \ In tc_restrictions.sh line 268: matchall skip_sw action $action_args ^----------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: matchall skip_sw action "$action_args" In tc_restrictions.sh line 271: tc filter del dev $swp1 egress protocol ip pref 10 handle 101 flower ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc filter del dev "$swp1" egress protocol ip pref 10 handle 101 flower In tc_restrictions.sh line 273: tc filter add dev $swp1 egress protocol all pref 11 handle 102 \ ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc filter add dev "$swp1" egress protocol all pref 11 handle 102 \ In tc_restrictions.sh line 274: matchall skip_sw action $action_args ^----------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: matchall skip_sw action "$action_args" In tc_restrictions.sh line 276: tc filter add dev $swp1 egress protocol ip pref 10 handle 101 flower \ ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc filter add dev "$swp1" egress protocol ip pref 10 handle 101 flower \ In tc_restrictions.sh line 280: tc filter del dev $swp1 egress protocol ip pref 10 handle 101 flower ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc filter del dev "$swp1" egress protocol ip pref 10 handle 101 flower In tc_restrictions.sh line 282: tc filter add dev $swp1 egress protocol ip pref 12 handle 101 flower \ ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc filter add dev "$swp1" egress protocol ip pref 12 handle 101 flower \ In tc_restrictions.sh line 286: tc qdisc del dev $swp1 clsact ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc qdisc del dev "$swp1" clsact In tc_restrictions.sh line 291: matchall_mirror_behind_flower_egress_test() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In tc_restrictions.sh line 296: matchall_proto_match_test() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In tc_restrictions.sh line 300: tc qdisc add dev $swp1 clsact ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc qdisc add dev "$swp1" clsact In tc_restrictions.sh line 302: tc filter add dev $swp1 ingress pref 1 proto ip handle 101 \ ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc filter add dev "$swp1" ingress pref 1 proto ip handle 101 \ In tc_restrictions.sh line 307: tc qdisc del dev $swp1 clsact ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc qdisc del dev "$swp1" clsact In tc_restrictions.sh line 312: police_limits_test() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In tc_restrictions.sh line 316: tc qdisc add dev $swp1 clsact ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc qdisc add dev "$swp1" clsact In tc_restrictions.sh line 318: tc filter add dev $swp1 ingress pref 1 proto ip handle 101 \ ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc filter add dev "$swp1" ingress pref 1 proto ip handle 101 \ In tc_restrictions.sh line 323: tc filter add dev $swp1 ingress pref 1 proto ip handle 101 \ ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc filter add dev "$swp1" ingress pref 1 proto ip handle 101 \ In tc_restrictions.sh line 328: tc filter add dev $swp1 ingress pref 1 proto ip handle 101 \ ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc filter add dev "$swp1" ingress pref 1 proto ip handle 101 \ In tc_restrictions.sh line 333: tc filter del dev $swp1 ingress protocol ip pref 1 handle 101 flower ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc filter del dev "$swp1" ingress protocol ip pref 1 handle 101 flower In tc_restrictions.sh line 335: tc filter add dev $swp1 ingress pref 1 proto ip handle 101 \ ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc filter add dev "$swp1" ingress pref 1 proto ip handle 101 \ In tc_restrictions.sh line 340: tc filter del dev $swp1 ingress protocol ip pref 1 handle 101 flower ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc filter del dev "$swp1" ingress protocol ip pref 1 handle 101 flower In tc_restrictions.sh line 342: tc filter add dev $swp1 ingress pref 1 proto ip handle 101 \ ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc filter add dev "$swp1" ingress pref 1 proto ip handle 101 \ In tc_restrictions.sh line 347: tc filter add dev $swp1 ingress pref 1 proto ip handle 101 \ ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc filter add dev "$swp1" ingress pref 1 proto ip handle 101 \ In tc_restrictions.sh line 352: tc filter del dev $swp1 ingress protocol ip pref 1 handle 101 flower ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc filter del dev "$swp1" ingress protocol ip pref 1 handle 101 flower In tc_restrictions.sh line 354: tc qdisc del dev $swp1 clsact ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc qdisc del dev "$swp1" clsact In tc_restrictions.sh line 359: multi_police_test() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In tc_restrictions.sh line 361: RET=0 ^-^ SC2034 (warning): RET appears unused. Verify use (or export if used externally). In tc_restrictions.sh line 366: tc qdisc add dev $swp1 clsact ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc qdisc add dev "$swp1" clsact In tc_restrictions.sh line 368: tc filter add dev $swp1 ingress protocol ip pref 1 handle 101 \ ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc filter add dev "$swp1" ingress protocol ip pref 1 handle 101 \ In tc_restrictions.sh line 373: tc filter del dev $swp1 ingress protocol ip pref 1 handle 101 flower ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc filter del dev "$swp1" ingress protocol ip pref 1 handle 101 flower In tc_restrictions.sh line 375: tc filter add dev $swp1 ingress protocol ip pref 1 handle 101 \ ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc filter add dev "$swp1" ingress protocol ip pref 1 handle 101 \ In tc_restrictions.sh line 381: tc qdisc del dev $swp1 clsact ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc qdisc del dev "$swp1" clsact In tc_restrictions.sh line 396: cleanup() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In tc_restrictions.sh line 414: exit $EXIT_STATUS ^----------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: exit "$EXIT_STATUS" For more information: https://www.shellcheck.net/wiki/SC2034 -- ALL_TESTS appears unused. Verify ... https://www.shellcheck.net/wiki/SC1091 -- Not following: ./devlink_lib.sh: ... https://www.shellcheck.net/wiki/SC2086 -- Double quote to prevent globbing ...