<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>13911</bug_id>
          
          <creation_ts>2008-01-06 22:05:22 +0300</creation_ts>
          <short_desc>tc filter doesn&apos;t work in VE</short_desc>
          <delta_ts>2009-03-25 09:25:57 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>kernel-image-ovz-smp</component>
          <version>unstable</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>NOTABUG</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>14491</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Vladimir V. Kamarzin">vvk</reporter>
          <assigned_to name="Evgeny Sinelnikov">sin</assigned_to>
          <cc>aspsk</cc>
    
    <cc>boris</cc>
    
    <cc>boyarsh</cc>
    
    <cc>glebfm</cc>
    
    <cc>ldv</cc>
    
    <cc>mike</cc>
    
    <cc>mithraen</cc>
    
    <cc>rider</cc>
    
    <cc>sbolshakov</cc>
    
    <cc>shrek</cc>
    
    <cc>sin</cc>
    
    <cc>vitty</cc>
    
    <cc>vsu</cc>
    
    <cc>zerg</cc>
    
    <cc>zver</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>60479</commentid>
    <comment_count>0</comment_count>
    <who name="Vladimir V. Kamarzin">vvk</who>
    <bug_when>2008-01-06 22:05:22 +0300</bug_when>
    <thetext>% rpm -q kernel-image-ovz-smp
kernel-image-ovz-smp-2.6.18-alt18
% rpm -q vzctl
vzctl-3.0.22-alt1

I&apos;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 &quot;handle&quot;:
[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 ...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>61373</commentid>
    <comment_count>1</comment_count>
    <who name="Vladimir V. Kamarzin">vvk</who>
    <bug_when>2008-01-18 18:27:29 +0300</bug_when>
    <thetext>Кстати tc filter в HN тоже не добавляется точно так же.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>61853</commentid>
    <comment_count>2</comment_count>
    <who name="Dmitry V. Levin">ldv</who>
    <bug_when>2008-01-24 16:39:16 +0300</bug_when>
    <thetext>reassign</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>62315</commentid>
    <comment_count>3</comment_count>
    <who name="Konstantin A Lepikhov (L.A. Kostis)">lakostis</who>
    <bug_when>2008-01-30 22:27:22 +0300</bug_when>
    <thetext>please test with kernel-image-ovz-smp-2.6.18-alt21 and post result here.
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>65136</commentid>
    <comment_count>4</comment_count>
    <who name="Vladimir V. Kamarzin">vvk</who>
    <bug_when>2008-03-06 15:13:31 +0300</bug_when>
    <thetext>Nothing changed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>65925</commentid>
    <comment_count>5</comment_count>
    <who name="Konstantin A Lepikhov (L.A. Kostis)">lakostis</who>
    <bug_when>2008-03-15 22:34:35 +0300</bug_when>
    <thetext>Поддержка данного ядра мною прекращена. Feel free to maintain.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>65931</commentid>
    <comment_count>6</comment_count>
    <who name="Dmitry V. Levin">ldv</who>
    <bug_when>2008-03-15 23:50:59 +0300</bug_when>
    <thetext>reassign</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>87880</commentid>
    <comment_count>7</comment_count>
    <who name="Vladimir V. Kamarzin">vvk</who>
    <bug_when>2009-03-25 09:25:57 +0300</bug_when>
    <thetext>Before adding &quot;parent 1:1&quot; filters need to create filter for &quot;parent 1:0&quot;. NOTABUG</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>