From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Simo" Date: Wed, 25 Apr 2007 01:12:52 +0000 Subject: [LARTC] problem with prio qdisc and tcng Message-Id: <000001c786d6$d97c6500$8c752f00$@de> MIME-Version: 1 Content-Type: multipart/mixed; boundary="===============2096786324==" List-Id: To: lartc@vger.kernel.org Dies ist eine mehrteilige Nachricht im MIME-Format. --===============2096786324== Content-Type: multipart/alternative; boundary="----=_NextPart_000_0001_01C786E7.9D053500" Content-Language: de Dies ist eine mehrteilige Nachricht im MIME-Format. ------=_NextPart_000_0001_01C786E7.9D053500 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hello Mailing list, I have a problem with the prio qdisc and I don=B4t know what is wrong in = my configuration This ist a sample configuration and looks like this: =20 #include "fields.tc" #include "ports.tc" =20 #define X16(i) i i i i i i i i i i i i i i i i =20 dev ppp0 { dsmark { prio(bands 6, priomap X16($be)) { class if ip_proto =3D=3D IPPROTO_UDP; =20 class if tcp_dport =3D=3D PORT_TELNET; class if tcp_dport =3D=3D PORT_HTTP; class if tcp_dport =3D=3D PORT_SMTP; class if ip_dst =3D=3D 10.0.10.10; $be =3D class(6); } } =20 } =20 The tc-Code looks like this: =20 # = =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D Device ppp0 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D =20 tc qdisc add dev ppp0 handle 1:0 root dsmark indices 64 set_tc_index tc qdisc add dev ppp0 handle 2:0 parent 1:0 prio bands 6 priomap 5 5 5 5 = 5 5 5 5 5 5 5 5 5 5 5 5 tc filter add dev ppp0 parent 2:0 protocol all prio 1 u32 match u8 0x11 = 0xff at 9 classid 2:1 tc filter add dev ppp0 parent 2:0 protocol all prio 1 handle 1:0:0 u32 divisor 1 tc filter add dev ppp0 parent 2:0 protocol all prio 1 u32 match u8 0x6 = 0xff at 9 offset at 0 mask 0f00 shift 6 eat link 1:0:0 tc filter add dev ppp0 parent 2:0 protocol all prio 1 handle 1:0:1 u32 = ht 1:0:0 match u16 0x17 0xffff at 2 classid 2:2 tc filter add dev ppp0 parent 2:0 protocol all prio 1 handle 2:0:0 u32 divisor 1 tc filter add dev ppp0 parent 2:0 protocol all prio 1 u32 match u8 0x6 = 0xff at 9 offset at 0 mask 0f00 shift 6 eat link 2:0:0 tc filter add dev ppp0 parent 2:0 protocol all prio 1 handle 2:0:1 u32 = ht 2:0:0 match u16 0x50 0xffff at 2 classid 2:3 tc filter add dev ppp0 parent 2:0 protocol all prio 1 handle 3:0:0 u32 divisor 1 tc filter add dev ppp0 parent 2:0 protocol all prio 1 u32 match u8 0x6 = 0xff at 9 offset at 0 mask 0f00 shift 6 eat link 3:0:0 tc filter add dev ppp0 parent 2:0 protocol all prio 1 handle 3:0:1 u32 = ht 3:0:0 match u16 0x19 0xffff at 2 classid 2:4 tc filter add dev ppp0 parent 2:0 protocol all prio 1 u32 match u32 0xa000a0a 0xffffffff at 16 classid 2:5 tc filter add dev ppp0 parent 1:0 protocol all prio 1 tcindex mask 0xfc shift 2 =20 =20 but when i execute the script and invoke: =93tc =96s class show dev = ppp0=94 I don=B4t see any Pakets, that have been enqueued or sent.=20 =20 pc1:/etc/tcng# tc -s class show dev ppp0 class prio 2:1 parent 2: Sent 0 bytes 0 pkts (dropped 0, overlimits 0) class prio 2:2 parent 2: Sent 0 bytes 0 pkts (dropped 0, overlimits 0) class prio 2:3 parent 2: Sent 0 bytes 0 pkts (dropped 0, overlimits 0) class prio 2:4 parent 2: Sent 0 bytes 0 pkts (dropped 0, overlimits 0) class prio 2:5 parent 2: Sent 0 bytes 0 pkts (dropped 0, overlimits 0) class prio 2:6 parent 2: Sent 0 bytes 0 pkts (dropped 0, overlimits 0) =20 =20 =20 =20 -------------------------------------------------------------------------= --- ----------------------------------------------------------------- In a world without walls who needs gates and windows? =20 ------=_NextPart_000_0001_01C786E7.9D053500 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable

Hello Mailing list,

I have a problem with the prio qdisc and I don=B4t know what is wrong in = my configuration

This ist a sample configuration and looks like this:

 

#include "fields.tc"

#include "ports.tc"

 

#define X16(i) i i i i=A0 i i i i=A0 i i i i=A0 i i i i

 

dev ppp0 {

=A0=A0 dsmark {

=A0=A0=A0=A0=A0= =A0=A0 prio(bands 6, priomap X16($be)) {

=A0=A0=A0=A0=A0= =A0=A0 class if ip_proto =3D=3D IPPROTO_UDP;=A0
=A0=A0=A0=A0=A0=A0=A0 class if tcp_dport =3D=3D = PORT_TELNET;

=A0=A0=A0=A0=A0= =A0=A0 class if tcp_dport =3D=3D PORT_HTTP;

=A0=A0=A0=A0=A0= =A0=A0 class if tcp_dport =3D=3D PORT_SMTP;

=A0=A0=A0=A0=A0= =A0=A0 class if ip_dst =3D=3D 10.0.10.10;

=A0=A0=A0=A0=A0= =A0=A0 $be =3D class(6);

=A0=A0=A0 }

=A0}

 

}<= /span>

 

The tc-Code looks like this:

 

# =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D Device ppp0 = =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D

 

tc qdisc add dev ppp0 handle 1:0 root dsmark indices 64 = set_tc_index

tc qdisc add dev ppp0 handle 2:0 parent 1:0 prio bands 6 priomap 5 5 5 5 5 = 5 5 5 5 5 5 5 5 5 5 5

tc filter add dev ppp0 parent 2:0 protocol all prio 1 u32 match u8 0x11 = 0xff at 9 classid 2:1

tc filter add dev ppp0 parent 2:0 protocol all prio 1 handle 1:0:0 u32 = divisor 1

tc filter add dev ppp0 parent 2:0 protocol all prio 1 u32 match u8 0x6 0xff = at 9 offset at 0 mask 0f00 shift 6 eat link 1:0:0

tc filter add dev ppp0 parent 2:0 protocol all prio 1 handle 1:0:1 u32 ht = 1:0:0 match u16 0x17 0xffff at 2 classid 2:2

tc filter add dev ppp0 parent 2:0 protocol all prio 1 handle 2:0:0 u32 = divisor 1

tc filter add dev ppp0 parent 2:0 protocol all prio 1 u32 match u8 0x6 0xff = at 9 offset at 0 mask 0f00 shift 6 eat link 2:0:0

tc filter add dev ppp0 parent 2:0 protocol all prio 1 handle 2:0:1 u32 ht = 2:0:0 match u16 0x50 0xffff at 2 classid 2:3

tc filter add dev ppp0 parent 2:0 protocol all prio 1 handle 3:0:0 u32 = divisor 1

tc filter add dev ppp0 parent 2:0 protocol all prio 1 u32 match u8 0x6 0xff = at 9 offset at 0 mask 0f00 shift 6 eat link 3:0:0

tc filter add dev ppp0 parent 2:0 protocol all prio 1 handle 3:0:1 u32 ht = 3:0:0 match u16 0x19 0xffff at 2 classid 2:4

tc filter add dev ppp0 parent 2:0 protocol all prio 1 u32 match u32 = 0xa000a0a 0xffffffff at 16 classid 2:5

tc filter add dev ppp0 parent 1:0 protocol all prio 1 tcindex mask 0xfc = shift 2

 

 

but when i execute the script and invoke: “tc –s class show dev = ppp0”=A0 I don=B4t see any Pakets, that have been enqueued or sent. =

 

pc1:/etc/tcng= # tc -s class show dev ppp0

class prio 2:1 parent 2:

=A0Sent 0 bytes 0 pkts (dropped 0, overlimits 0)

class prio 2:2 parent 2:

=A0Sent 0 bytes 0 pkts (dropped 0, overlimits 0)

class prio 2:3 parent 2:

=A0Sent 0 bytes 0 pkts (dropped 0, overlimits 0)

class prio 2:4 parent 2:

=A0Sent 0 bytes 0 pkts (dropped 0, overlimits 0)

class prio 2:5 parent 2:

=A0Sent 0 bytes 0 pkts (dropped 0, overlimits 0)

class prio 2:6 parent 2:

=A0Sent 0 bytes 0 pkts (dropped 0, overlimits 0)=A0

 

 

 


---------------------------------------------------= -------------------------------------------------------------------------= -----------------
In a world without walls who needs gates and windows?


 

------=_NextPart_000_0001_01C786E7.9D053500-- --===============2096786324== 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 --===============2096786324==--