repo.or.cz
/
linux
/
fpc-iii.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
WIP FPC-III support
[linux/fpc-iii.git]
/
tools
/
testing
/
selftests
/
net
/
forwarding
/
sch_tbf_root.sh
blob
72aa21ba88c72eb3a214a410cfcae2dcdb2221e3
1
#!/bin/bash
2
# SPDX-License-Identifier: GPL-2.0
3
4
ALL_TESTS
=
"
5
ping_ipv4
6
tbf_test
7
"
8
:
${lib_dir:=.}
9
source
$lib_dir
/
sch_tbf_core.sh
10
11
tbf_test_one
()
12
{
13
local
bs
=
$1
;
shift
14
15
tc qdisc replace dev
$swp2
root handle
108
:
tbf \
16
rate
400
Mbit burst
$bs
limit
1
M
17
do_tbf_test
10 400
$bs
18
}
19
20
tbf_test
()
21
{
22
tbf_test_one
128
K
23
tc qdisc del dev
$swp2
root
24
}
25
26
trap
cleanup EXIT
27
28
setup_prepare
29
setup_wait
30
31
tests_run
32
33
exit
$EXIT_STATUS