All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai-core] [PATCH] RT-Socket-CAN: correct bug with filter registration
@ 2008-10-29 12:37 Wolfgang Grandegger
  2008-10-29 13:01 ` Sebastian Smolorz
  2008-10-30  0:26 ` Jan Kiszka
  0 siblings, 2 replies; 4+ messages in thread
From: Wolfgang Grandegger @ 2008-10-29 12:37 UTC (permalink / raw)
  To: xenomai-core; +Cc: Jan Kiszka, Sebastian Smolorz

Hi Jan and Sebastian,

attached is the patch fixing the filter problem. I'm going to apply it
to the trunk as well if there are no complaints.

Wolfgang.

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 4287)
+++ ChangeLog	(working copy)
@@ -1,3 +1,9 @@
+2008-10-29  Wolfgang Grandegger  <wg@domain.hid>
+
+	* ksrc/drivers/can/rtcan_raw_filter.c(rtcan_raw_mount_filter):
+	Applying the filter mask required for fast filter checks got lost
+	somehow with commit 2202.
+
 2008-10-28  Gilles Chanteperdrix  <gilles.chanteperdrix@xenomai.org>
 
 	* ksrc/nucleus/thread.c (xnthread_init): Change initialization
Index: ksrc/drivers/can/rtcan_raw_filter.c
===================================================================
--- ksrc/drivers/can/rtcan_raw_filter.c	(revision 4287)
+++ ksrc/drivers/can/rtcan_raw_filter.c	(working copy)
@@ -62,6 +62,9 @@
 	recv_filter->can_id = filter->can_id;
 	recv_filter->can_mask = filter->can_mask & ~CAN_INV_FILTER;
     }
+
+    /* Apply mask for fast filter check */
+    recv_filter->can_id &= recv_filter->can_mask;
 }
 
 



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

end of thread, other threads:[~2008-10-30 11:25 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-29 12:37 [Xenomai-core] [PATCH] RT-Socket-CAN: correct bug with filter registration Wolfgang Grandegger
2008-10-29 13:01 ` Sebastian Smolorz
2008-10-30  0:26 ` Jan Kiszka
2008-10-30 11:25   ` Wolfgang Grandegger

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.