From: Jody Shumaker Date: Thu, 03 Nov 2005 22:11:41 +0000 Subject: Re: [LARTC] Cannot get htb & prio working together. Message-Id: <2af436490511031411o6a739104vc0980f2fefd5cc1e@mail.gmail.com> MIME-Version: 1 Content-Type: multipart/mixed; boundary="===============2002512202==" List-Id: References: <436A4E6B.6090506@bbd.co.za> In-Reply-To: <436A4E6B.6090506@bbd.co.za> To: lartc@vger.kernel.org --===============2002512202== Content-Type: multipart/alternative; boundary="----=_Part_25408_19160157.1131055901272" ------=_Part_25408_19160157.1131055901272 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Filters I believe are per qdisc. You really need to have filters to specify which HTB class and which prio class. tc filter add dev eth0 parent 1:0 protocol ip prio 1 u32 match ip dport 22 0xffff flowid 1:20 tc filter add dev eth0 parent 1:0 protocol ip prio 1 u32 match ip dport 23 0xffff flowid 1:20 tc filter add dev eth0 parent 1:20 protocol ip prio 1 u32 match ip dport 22 0xffff flowid 20:1 tc filter add dev eth0 parent 1:20 protocol ip prio 1 u32 match ip dport 23 0xffff flowid 20:3 I imagine what you actually want to do would be differently. have some set of filters that define what goes into 1:20, then you'll need a set of filters for 1:20 specifying where in that qdisc they should go. - Jody On 11/3/05, Andreas Klauer wrote: > > On Thursday 03 November 2005 18:52, Michael Davidson wrote: > > tc filter add dev eth0 parent 1:0 protocol ip prio 1 u32 match ip dport > > 22 0xffff flowid 20:1 > > tc filter add dev eth0 parent 1:0 protocol ip prio 1 u32 match ip dport > > 23 0xffff flowid 20:3 > > Do filters actually work in between different qdiscs? > > I use HTB & PRIO also, but my filter puts packets from the HTB qdisc to > the > HTB leaf class first, and then another filter puts packets from the PRIO > qdisc in the correct PRIO band. > > HTH > Andreas > _______________________________________________ > LARTC mailing list > LARTC@mailman.ds9a.nl > http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc > ------=_Part_25408_19160157.1131055901272 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Filters I believe are per qdisc.  You really need to have filters to s= pecify which HTB class and which prio class.

tc filter add dev eth0 parent 1:0 protocol ip prio 1 u32 match ip dport 22 = 0xffff flowid 1:20
tc filter add dev eth0 parent 1:0 protocol ip prio 1 u32 match ip dport 23 = 0xffff flowid 1:20
tc filter add dev eth0 parent 1:20 protocol ip prio 1 u32 match ip dport 22= 0xffff flowid 20:1
tc filter add dev eth0 parent 1:20 protocol ip prio 1 u32 match ip dport 23= 0xffff flowid 20:3

I imagine what you actually want to do would be differently.  have some set of filters that define what goes into 1:20,  then you'll need  a set of filters for 1:20 specifying where in that qdisc they should go.

- Jody



On 11/3/05, Andreas Klauer <Andreas.Klauer@metamorpher.de> wrote:
On Thursday 03 November 2005 18:52, Michael Davidson wrote:
> tc filt= er add dev eth0 parent 1:0 protocol ip prio 1 u32 match ip dport
> 22= 0xffff flowid 20:1
> tc filter add dev eth0 parent 1:0 protocol ip p= rio 1 u32 match ip dport
> 23 0xffff flowid 20:3

Do filters actually work in between d= ifferent qdiscs?

I use HTB & PRIO also, but my filter puts packe= ts from the HTB qdisc to the
HTB leaf class first, and then another filt= er puts packets from the PRIO
qdisc in the correct PRIO band.

HTH
Andreas
______________= _________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
<= /div>
------=_Part_25408_19160157.1131055901272-- --===============2002512202== 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 --===============2002512202==--