All of lore.kernel.org
 help / color / mirror / Atom feed
* [LARTC] u32 classifier
@ 2003-07-14 12:11 Andreani Luca
  2007-06-02  9:19 ` terraja-based
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: Andreani Luca @ 2003-07-14 12:11 UTC (permalink / raw)
  To: lartc

[-- Attachment #1: Type: text/plain, Size: 772 bytes --]

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.
		

[-- Attachment #2: Type: text/html, Size: 1568 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2007-06-06 14:00 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-07-14 12:11 [LARTC] u32 classifier Andreani Luca
2007-06-02  9:19 ` terraja-based
2007-06-02 10:31 ` Afshin Tajvidi
2007-06-02 11:46 ` VladSun
2007-06-06 13:19 ` Catalin Bucur
2007-06-06 13:50 ` VladSun
2007-06-06 14:00 ` Catalin Bucur

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.