]> Git Repo - linux.git/blob - tools/testing/selftests/tc-testing/scripts/taprio_wait_for_admin.sh
Linux 6.14-rc3
[linux.git] / tools / testing / selftests / tc-testing / scripts / taprio_wait_for_admin.sh
1 #!/bin/bash
2
3 TC="$1"; shift
4 ETH="$1"; shift
5
6 # The taprio architecture changes the admin schedule from a hrtimer and not
7 # from process context, so we need to wait in order to make sure that any
8 # schedule change actually took place.
9 while :; do
10         has_admin="$($TC -j qdisc show dev $ETH root | jq '.[].options | has("admin")')"
11         if [ "$has_admin" = "false" ]; then
12                 break;
13         fi
14
15         sleep 1
16 done
This page took 0.049381 seconds and 4 git commands to generate.