Bug 13911 - tc filter doesn't work in VE
: tc filter doesn't work in VE
Status: CLOSED NOTABUG
: Sisyphus
(All bugs in Sisyphus/kernel-image-ovz-smp)
: unstable
: all Linux
: P2 normal
Assigned To:
:
:
:
:
: 14491
  Show dependency tree
 
Reported: 2008-01-06 22:05 by
Modified: 2009-03-25 09:25 (History)


Attachments


Note

You need to log in before you can comment on or make changes to this bug.


Description From 2008-01-06 22:05:22
% 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 From 2008-01-18 18:27:29 -------
Кстати tc filter в HN тоже не добавляется точно так же.
------- Comment #2 From 2008-01-24 16:39:16 -------
reassign
------- Comment #3 From 2008-01-30 22:27:22 -------
please test with kernel-image-ovz-smp-2.6.18-alt21 and post result here.
------- Comment #4 From 2008-03-06 15:13:31 -------
Nothing changed.
------- Comment #5 From 2008-03-15 22:34:35 -------
Поддержка данного ядра мною прекращена. Feel free to maintain.
------- Comment #6 From 2008-03-15 23:50:59 -------
reassign
------- Comment #7 From 2009-03-25 09:25:57 -------
Before adding "parent 1:1" filters need to create filter for "parent 1:0".
NOTABUG