From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andreani Luca Date: Mon, 14 Jul 2003 12:11:55 +0000 Subject: [LARTC] u32 classifier MIME-Version: 1 Content-Type: multipart/mixed; boundary="----_=_NextPart_001_01C34A01.1DD3AC20" Message-Id: List-Id: To: lartc@vger.kernel.org This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_001_01C34A01.1DD3AC20 Content-Type: text/plain; charset="iso-8859-1" Dear list, I have some problems with u32 classifier. I use a board based on Motorola MPC8245 processor (ppc based). I noticed that when the u32_classify function (in /net/sched/cls_u32.c) is called, it returns an error. Making some printk-based debug I found that the critical point in the code is the following: #if !defined(__i386__) && !defined(__mc68000__) if ((unsigned long)ptr & 3) return -1; #endif The problem is that when I have a packet to be forwarded the classification fails at this point (return -1, default class). This is not the case when the packet is generated locally. The question is: what is the meaning of this code, what happens if this check is removed in architectures other then i386 and mc68000? Thank's in advance, Luca Andreani. ------_=_NextPart_001_01C34A01.1DD3AC20 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable u32 classifier

Dear list,

I have some problems with u32 classifier. I use a = board based on Motorola MPC8245 processor (ppc based). I noticed that = when the u32_classify function

(in /net/sched/cls_u32.c) is called, it returns an = error. Making some printk-based debug I found that the critical point = in the code is the following:

#if !defined(__i386__) && = !defined(__mc68000__)
        if = ((unsigned long)ptr & 3)
        =         return = -1;
#endif

The problem is that when I have a packet to be = forwarded the classification fails at this point (return -1, default = class). This is not the case when the packet is generated locally. The = question is: what is the meaning of this code, what happens if this = check is removed in architectures other then i386 and = mc68000?

Thank's in advance,

Luca Andreani.
        =        =20

------_=_NextPart_001_01C34A01.1DD3AC20-- _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/