From: "Georgy Zhukov" Date: Sat, 17 Feb 2007 22:45:03 +0000 Subject: Re: [LARTC] Re: Order of 'tc filer' Message-Id: <30a2c22b0702171445s10985f18nee00b65b3fd8d31d@mail.gmail.com> MIME-Version: 1 Content-Type: multipart/mixed; boundary="===============0974615574==" List-Id: References: In-Reply-To: To: lartc@vger.kernel.org --===============0974615574== Content-Type: multipart/alternative; boundary="----=_Part_14913_9151922.1171752303524" ------=_Part_14913_9151922.1171752303524 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Same here. In fact every article I've read recommend the use of prio 0 for administration purposes only. On 2/17/07, Bob Puff wrote: > > This is the reverse of what I believe I have read - you may want to > continue > looking. Prio 0 is supposed to be the highest, i believe. > > Bob > > > ---------- Original Message ----------- > From: "Martin Schi=F8tz" > To: lartc@mailman.ds9a.nl > Sent: Sat, 17 Feb 2007 19:14:46 +0100 > Subject: [LARTC] Re: Order of 'tc filer' > > > OK - I solved the thing. Using 'prio 0' actually gives the filter a > > low priority. > > > > I just used 'prio 1' instead and know I can control the order :-) > > > > - Martin > > > > On 2/17/07, Martin Schi=F8tz wrote: > > > Hi > > > > > > How can I control which filter a packet will meet first? > > > > > > I have tried changing the order of applying the tc filter scripts and > > > switching flowid number, but 'protocol ip u32 match ip src > > > match ip src 0.0.0.0/0' always kicks in first? > > > > > > From my script > > > -------------------- > > > # All traffic - Priority: Low > > > tc filter add dev eth0 parent 1:0 prio 2 protocol ip u32 match ip src > > > match ip src 0.0.0.0/0 flowid 1:21 > > > # Traffic between offices (IPSEC) - Priority: High > > > tc filter add dev eth0 parent 1:0 prio 0 protocol ip u32 match ip src > > > match ip protocol 50 0xff flowid 1:22 > > > > > > > > > # tc -s filter show dev eth0 > > > ---------------------------------- > > > filter parent 1: protocol ip pref 2 u32 > > > filter parent 1: protocol ip pref 2 u32 fh 800: ht divisor 1 > > > filter parent 1: protocol ip pref 2 u32 fh 800::802 order 2050 key ht > > > 800 bkt 0 flowid 1:21 (rule hit 428 success 426) > > > match c0000000/e0000000 at 16 (success 426 ) > > > match 00000000/00000000 at 12 (success 426 ) > > > filter parent 1: protocol ip pref 49151 u32 > > > filter parent 1: protocol ip pref 49151 u32 fh 803: ht divisor 1 > > > filter parent 1: protocol ip pref 49151 u32 fh 803::800 order 2048 ke= y > > > ht 803 bkt 0 flowid 1:22 (rule hit 3 success 0) > > > match c0000000/e0000000 at 16 (success 0 ) > > > match 00320000/00ff0000 at 8 (success 0 ) > > > > > > - Martin > > > > > _______________________________________________ > > LARTC mailing list > > LARTC@mailman.ds9a.nl > > http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc > ------- End of Original Message ------- > > _______________________________________________ > LARTC mailing list > LARTC@mailman.ds9a.nl > http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc > ------=_Part_14913_9151922.1171752303524 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Same here.
In fact every article I've read recommend the use of prio= 0 for administration purposes only.

On 2/17/07, Bob Puff < bob@nleaudio.com> wrote:
This is the reverse of what I believe I have read - yo= u may want to continue
looking.  Prio 0 is supposed to be the highest, i believe.
Bob


---------- Original Message -----------
From: "= Martin Schi=F8tz" <malinux@gma= il.com >
To: lartc@mailman.ds9a.nl<= /a>
Sent: Sat, 17 Feb 2007 19:14:46 +0100
Subject: [LARTC] Re: Order = of 'tc filer'

> OK - I solved the thing. Using 'prio = 0' actually gives the filter a
> low priority.
>
> I just used 'prio 1' instead= and know I can control the order :-)
>
> - Martin
>
&= gt; On 2/17/07, Martin Schi=F8tz <
m= alinux@gmail.com > wrote:
> > Hi
> >
> > How can I control= which filter a packet will meet first?
> >
> > I have tr= ied changing the order of applying the tc filter scripts and
> > s= witching flowid number, but 'protocol ip u32 match ip src <ip net>= ;
> > match ip src 0.0.0.0/0' = always kicks in first?
> >
> > From my script
> >= ; --------------------
> > # All traffic - Priority: Low
> &= gt; tc filter add dev eth0 parent 1:0 prio 2 protocol ip u32 match ip src
> > <ip net> match ip src 0.0.= 0.0/0 flowid 1:21
> > # Traffic between offices (IPSEC) - Prio= rity: High
> > tc filter add dev eth0 parent 1:0 prio 0 protocol i= p u32 match ip src
> > <ip net> match ip protocol 50 0xff flowid 1:22
> = >
> >
> > # tc -s filter show dev eth0
> > --= --------------------------------
> > filter parent 1: protocol ip = pref 2 u32
> > filter parent 1: protocol ip pref 2 u32 fh 800: ht divisor 1<= br>> > filter parent 1: protocol ip pref 2 u32 fh 800::802 order 2050= key ht
> > 800 bkt 0 flowid 1:21  (rule hit 428 success= 426)
> >   match c0000000/e0000000 at 16 (success 426 )
> = >   match 00000000/00000000 at 12 (success 426 )
> > = filter parent 1: protocol ip pref 49151 u32
> > filter parent 1: p= rotocol ip pref 49151 u32 fh 803: ht divisor 1
> > filter parent 1: protocol ip pref 49151 u32 fh 803::800 order= 2048 key
> > ht 803 bkt 0 flowid 1:22  (rule hit 3 succ= ess 0)
> >   match c0000000/e0000000 at 16 (success 0 )<= br>> >   match 00320000/00ff0000 at 8 (success 0 )
> >
> > - Martin
> >
> __________________= _____________________________
> LARTC mailing list
> LARTC@mailman.ds9a.nl
> http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
------- End of= Original Message -------

__________________________________________= _____
LARTC mailing list
LAR= TC@mailman.ds9a.nl
h= ttp://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

------=_Part_14913_9151922.1171752303524-- --===============0974615574== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ LARTC mailing list LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc --===============0974615574==--