Merge tag 'trace-printf-v6.13' of git://git.kernel.org/pub/scm/linux/kernel/git/trace...
[drm/drm-misc.git] / tools / testing / selftests / net / forwarding / sch_tbf_root.sh
blob9f20320f8d84e528e2a46264bd2df78bb398538c
1 #!/bin/bash
2 # SPDX-License-Identifier: GPL-2.0
4 ALL_TESTS="
5 ping_ipv4
6 tbf_test
8 : ${lib_dir:=.}
9 source $lib_dir/sch_tbf_core.sh
11 tbf_test_one()
13 local bs=$1; shift
15 tc qdisc replace dev $swp2 root handle 108: tbf \
16 rate 400Mbit burst $bs limit 1M
17 defer tc qdisc del dev $swp2 root
19 do_tbf_test 10 400 $bs
22 tbf_test()
24 tbf_test_one 128K
27 if type -t sch_tbf_pre_hook >/dev/null; then
28 sch_tbf_pre_hook
31 trap cleanup EXIT
33 setup_prepare
34 setup_wait
36 tests_run
38 exit $EXIT_STATUS