Bug 13911

Summary: tc filter doesn't work in VE
Product: Sisyphus Reporter: Vladimir V. Kamarzin <vvk>
Component: kernel-image-ovz-smpAssignee: Evgeny Sinelnikov <sin>
Status: CLOSED NOTABUG QA Contact: qa-sisyphus
Severity: normal    
Priority: P2 CC: aspsk, boris, boyarsh, glebfm, ldv, mike, mithraen, rider, sbolshakov, shrek, sin, vitty, vsu, zerg, zver
Version: unstable   
Hardware: all   
OS: Linux   
Bug Depends on:    
Bug Blocks: 14491    

Description Vladimir V. Kamarzin 2008-01-06 22:05:22 MSK
% rpm -q kernel-image-ovz-smp
kernel-image-ovz-smp-2.6.18-alt18
% rpm -q vzctl
vzctl-3.0.22-alt1

I'm trying to configure some QoS in VE. I can add qdisc-s and classes without
troubles, but adding tc filter is a problem.

[root@router /]# tc qdisc show dev eth0
qdisc htb 1: r2q 10 default 30 direct_packets_stat 4

[root@router /]# tc class show dev eth0
class htb 1:1 root rate 120000bit ceil 120000bit burst 6Kb cburst 1749b
class htb 1:10 parent 1:1 prio 1 rate 120000bit ceil 120000bit burst 6Kb cburst
1749b
class htb 1:20 parent 1:1 prio 2 rate 108000bit ceil 108000bit burst 6Kb cburst
1734b
class htb 1:30 parent 1:1 prio 3 rate 96000bit ceil 110000bit burst 6Kb cburst 1736b


Trying to add filter: no errors reported, but filter is absent!
[root@router /]# tc filter add dev eth0 parent 1:1 protocol ip prio 2 u32 match
ip dport 80 0xffff flowid 1:20
[root@router /]# tc filter show dev eth0
[root@router /]#

And there is not possible to add filter with filtertype "handle":
[root@router /]# tc filter add dev eth0 parent 1:1 protocol ip prio 1 handle 1
fw classid 1:10
RTNETLINK answers: Invalid argument
We have an error talking to the kernel

P.S. eth0 is the physical interface that was moved from HN to VE with vzctl
--netdev_add ...
Comment 1 Vladimir V. Kamarzin 2008-01-18 18:27:29 MSK
Кстати tc filter в HN тоже не добавляется точно так же.
Comment 2 Dmitry V. Levin 2008-01-24 16:39:16 MSK
reassign
Comment 3 Konstantin A Lepikhov (L.A. Kostis) 2008-01-30 22:27:22 MSK
please test with kernel-image-ovz-smp-2.6.18-alt21 and post result here.
Comment 4 Vladimir V. Kamarzin 2008-03-06 15:13:31 MSK
Nothing changed.
Comment 5 Konstantin A Lepikhov (L.A. Kostis) 2008-03-15 22:34:35 MSK
Поддержка данного ядра мною прекращена. Feel free to maintain.
Comment 6 Dmitry V. Levin 2008-03-15 23:50:59 MSK
reassign
Comment 7 Vladimir V. Kamarzin 2009-03-25 09:25:57 MSK
Before adding "parent 1:1" filters need to create filter for "parent 1:0". NOTABUG