WIP FPC-III support
[linux/fpc-iii.git] / tools / testing / selftests / net / forwarding / sch_tbf_root.sh
blob72aa21ba88c72eb3a214a410cfcae2dcdb2221e3
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 do_tbf_test 10 400 $bs
20 tbf_test()
22 tbf_test_one 128K
23 tc qdisc del dev $swp2 root
26 trap cleanup EXIT
28 setup_prepare
29 setup_wait
31 tests_run
33 exit $EXIT_STATUS