Skip to contentSkip to conversation

prio, kernel 2.6: patch?

LARTC Fabio 2 participants 3 messages Mar 28, 2006

lore
Share & tools
lore

Fabio

author
#0 lore raw

hi to all,
I'm studying traffic shaping using kernel 2.6.8 (debian sarge).

well, I have this problem: priority doesn't work.
I try with:
- qdisc prio:
tc qdisc add dev eth1 root handle 12: prio bands 3
tc qdisc add dev eth1 parent 12:1 handle 13: tbf rate 10Mbit buffer
1600 limit 3000

_______________________________________________
LARTC mailing list
[email protected]
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

author
#1 lore raw

hi to all,
I'm sorry, the previous mail was incomplete. I rewrite all COMPLETE informations.

I'm studying traffic shaping using kernel 2.6.8 (debian sarge).

well, I have this problem: priority doesn't work.
I try with:
- qdisc prio:

     tc qdisc add dev eth1 root handle 12: prio bands 3
     tc qdisc add dev eth1 parent 12:1 handle 13: tbf rate 10Mbit \
              buffer 1600 limit 3000
     tc qdisc add dev eth1 parent 12:2 handle 14: tbf rate 10Mbit \
              buffer 1600 limit 3000
     tc qdisc add dev eth1 parent 12:3 handle 15: tbf rate 10Mbit \
              buffer 1600 limit 3000

     tc filter add dev eth1 protocol ip handle $MARK1 fw flowid 12:1
     tc filter add dev eth1 protocol ip handle $MARK2 fw flowid 12:2
     tc filter add dev eth1 protocol ip handle $MARK3 fw flowid 12:3

- and setting prio in htb class

both with no results: data rate (trasmitted packets in a time unit) is the same for the 3 queue.

someone knows if kernel 2.6 manage correctly priority or it needs a patch?

Thanks in advance,
Fabio Marcone

_______________________________________________
LARTC mailing list
[email protected]
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

#2 lore raw
In reply to Fabio
Quoted 11 lines

hi to all,
I'm sorry, the previous mail was incomplete. I rewrite all COMPLETE informations.

I'm studying traffic shaping using kernel 2.6.8 (debian sarge).

well, I have this problem: priority doesn't work.
I try with:
- qdisc prio:

Quoted 11 lines
    tc qdisc add dev eth1 root handle 12: prio bands 3
    tc qdisc add dev eth1 parent 12:1 handle 13: tbf rate 10Mbit \
             buffer 1600 limit 3000
    tc qdisc add dev eth1 parent 12:2 handle 14: tbf rate 10Mbit \
             buffer 1600 limit 3000
    tc qdisc add dev eth1 parent 12:3 handle 15: tbf rate 10Mbit \
             buffer 1600 limit 3000

    tc filter add dev eth1 protocol ip handle $MARK1 fw flowid 12:1
    tc filter add dev eth1 protocol ip handle $MARK2 fw flowid 12:2
    tc filter add dev eth1 protocol ip handle $MARK3 fw flowid 12:3

Yes there is a bug with PRIO, as I know from kernel 2.6.12 there is no this bug.
Try to find patch for file cls_u32.c or install new kernel

Regards

Radek

_______________________________________________
LARTC mailing list
[email protected]
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc