2 # SPDX-License-Identifier: GPL-2.0
6 # Can be overridden by the configuration file. See lib.sh
7 : "${TC_HIT_TIMEOUT:=1000}" # ms
15 busywait
"$TC_HIT_TIMEOUT" until_counter_is
"== $count" \
16 tc_rule_handle_stats_get
"$id" "$handle" > /dev
/null
19 tc_check_at_least_x_packets
()
25 busywait
"$TC_HIT_TIMEOUT" until_counter_is
">= $count" \
26 tc_rule_handle_stats_get
"$id" "$handle" > /dev
/null
29 tc_check_packets_hitting
()
34 busywait
"$TC_HIT_TIMEOUT" until_counter_is
"> 0" \
35 tc_rule_handle_stats_get
"$id" "$handle" > /dev
/null