From 85c675d0d09a45a135bddd15d7b385f8758c32fb Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 18 May 2024 19:35:05 +0200 Subject: Adding upstream version 6.7.7. Signed-off-by: Daniel Baumann --- .../tc-testing/scripts/taprio_wait_for_admin.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 tools/testing/selftests/tc-testing/scripts/taprio_wait_for_admin.sh (limited to 'tools/testing/selftests/tc-testing/scripts') diff --git a/tools/testing/selftests/tc-testing/scripts/taprio_wait_for_admin.sh b/tools/testing/selftests/tc-testing/scripts/taprio_wait_for_admin.sh new file mode 100755 index 0000000000..f5335e8ad6 --- /dev/null +++ b/tools/testing/selftests/tc-testing/scripts/taprio_wait_for_admin.sh @@ -0,0 +1,16 @@ +#!/bin/bash + +TC="$1"; shift +ETH="$1"; shift + +# The taprio architecture changes the admin schedule from a hrtimer and not +# from process context, so we need to wait in order to make sure that any +# schedule change actually took place. +while :; do + has_admin="$($TC -j qdisc show dev $ETH root | jq '.[].options | has("admin")')" + if [ "$has_admin" = "false" ]; then + break; + fi + + sleep 1 +done -- cgit v1.2.3