6 QDISCS="cbq htb dsmark"
9 ts_log "Preparing classifier testbed with qdisc $q"
11 for c in tests/cls/*.t; do
15 ts_tc "cls-testbed" "cbq root qdisc creation" \
16 qdisc add dev $DEV root handle 10:0 \
17 cbq bandwidth 100Mbit avpkt 1400 mpu 64
18 ts_tc "cls-testbed" "cbq root class creation" \
19 class add dev $DEV parent 10:0 classid 10:12 \
20 cbq bandwidth 100mbit rate 100mbit allot 1514 prio 3 \
21 maxburst 1 avpkt 500 bounded
24 ts_qdisc_available "htb"
26 ts_log "cls-testbed: HTB is unsupported by $TC, skipping"
29 ts_tc "cls-testbed" "htb root qdisc creation" \
30 qdisc add dev $DEV root handle 10:0 htb
31 ts_tc "cls-testbed" "htb root class creation" \
32 class add dev $DEV parent 10:0 classid 10:12 \
33 htb rate 100Mbit quantum 1514
36 ts_qdisc_available "dsmark"
38 ts_log "cls-testbed: dsmark is unsupported by $TC, skipping"
41 ts_tc "cls-testbed" "dsmark root qdisc creation" \
42 qdisc add dev $DEV root handle 20:0 \
43 dsmark indices 64 default_index 1 set_tc_index
44 ts_tc "cls-testbed" "dsmark class creation" \
45 class change dev $DEV parent 20:0 classid 20:12 \
46 dsmark mask 0xff value 2
47 ts_tc "cls-testbed" "prio inner qdisc creation" \
48 qdisc add dev $DEV parent 20:0 handle 10:0 prio
51 ts_err "cls-testbed: no testbed configuration found for qdisc $q"
56 ts_tc "cls-testbed" "tree listing" qdisc list dev eth0
57 ts_tc "cls-testbed" "tree class listing" class list dev eth0
58 ts_log "cls-testbed: starting classifier test $c"
63 ts_tc "cls-testbed" "generic qdisc tree deletion" \
64 qdisc del dev $DEV root