From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <490999BE.8060709@domain.hid> Date: Thu, 30 Oct 2008 12:25:50 +0100 From: Wolfgang Grandegger MIME-Version: 1.0 References: <49085904.8080302@domain.hid> <4908FF4D.4050706@domain.hid> In-Reply-To: <4908FF4D.4050706@domain.hid> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Xenomai-core] [PATCH] RT-Socket-CAN: correct bug with filter registration List-Id: "Xenomai life and development \(bug reports, patches, discussions\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Jan Kiszka Cc: xenomai-core , Sebastian Smolorz Jan Kiszka wrote: > Wolfgang Grandegger wrote: >> 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 >> + >> + * 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 >> >> * 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; >> } >> >> > > Ack from me, too. Please commit to trunk and 2.4.x. I just applied it to both branches. Thanks, Wolfgang.