aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/net/forwarding/tc_shblocks.sh
diff options
context:
space:
mode:
authorJiri Pirko <jiri@mellanox.com>2018-07-23 09:24:05 +0200
committerDavid S. Miller <davem@davemloft.net>2018-07-23 20:44:13 -0700
commit7f333cbf2b5bb48045e4f31de1c33fb701ffa45a (patch)
tree51e8461c7ff2e5a3f72bfed7c51c8f71c16ffdf0 /tools/testing/selftests/net/forwarding/tc_shblocks.sh
parentmlxsw: spectrum: Implement chain template hinting (diff)
downloadlinux-dev-7f333cbf2b5bb48045e4f31de1c33fb701ffa45a.tar.xz
linux-dev-7f333cbf2b5bb48045e4f31de1c33fb701ffa45a.zip
selftests: forwarding: move shblock tc support check to a separate helper
The shared block support is only needed for tc_shblock.sh. No need to require that for other test. Signed-off-by: Jiri Pirko <jiri@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '')
-rwxr-xr-xtools/testing/selftests/net/forwarding/tc_shblocks.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/testing/selftests/net/forwarding/tc_shblocks.sh b/tools/testing/selftests/net/forwarding/tc_shblocks.sh
index b5b917203815..9826a446e2c0 100755
--- a/tools/testing/selftests/net/forwarding/tc_shblocks.sh
+++ b/tools/testing/selftests/net/forwarding/tc_shblocks.sh
@@ -105,6 +105,8 @@ cleanup()
ip link set $swp2 address $swp2origmac
}
+check_tc_shblock_support
+
trap cleanup EXIT
setup_prepare