brintos

brintos / linux-shallow public Read only

0
0
Text · 489 B · 96c997b Raw
38 lines · bash
1#!/bin/bash2# SPDX-License-Identifier: GPL-2.03 4ALL_TESTS="5	ping_ipv46	tbf_test7"8: ${lib_dir:=.}9source $lib_dir/sch_tbf_core.sh10 11tbf_test_one()12{13	local bs=$1; shift14 15	tc qdisc replace dev $swp2 root handle 108: tbf \16	   rate 400Mbit burst $bs limit 1M17	do_tbf_test 10 400 $bs18}19 20tbf_test()21{22	tbf_test_one 128K23	tc qdisc del dev $swp2 root24}25 26if type -t sch_tbf_pre_hook >/dev/null; then27	sch_tbf_pre_hook28fi29 30trap cleanup EXIT31 32setup_prepare33setup_wait34 35tests_run36 37exit $EXIT_STATUS38