Ticket #8689: hsfc-imq.txt

File hsfc-imq.txt, 662 bytes (added by josephlanders@…, 7 years ago)

TC / HSFC with IMQ

Line 
1
2rmmod sch_hfsc
3insmod sch_hfsc
4
5rmmod sch_sfq
6insmod sch_sfq
7
8tc qdisc del dev eth0 root
9
10tc qdisc add dev  imq1 root handle 2: hfsc
11tc class add dev imq1 parent 2: classid 2:2 hfsc sc rate 345kbit ul rate 345kbit  ### CRASHES HERE
12tc class add dev  imq1 parent 2:2 classid 2:110  hfsc sc umax 1500b dmax 10ms rate 100kbit ul rate 145kbit
13tc class add dev  imq1 parent 2:2 classid 2:120  hfsc sc m1 0 d 2s m2 150kbit ul rate 200kbit
14
15
16tc qdisc add dev  imq1 parent 2:110 handle 110: sfq perturb 10
17tc qdisc add dev  imq1 parent 2:120 handle 120: sfq perturb 10
18
19iptables -t mangle -A POSTROUTING -o br-lan -j IMQ --todev 1
20ip link set imq1 up