From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <49085EB0.9040408@domain.hid> Date: Wed, 29 Oct 2008 14:01:36 +0100 From: Sebastian Smolorz MIME-Version: 1.0 References: <49085904.8080302@domain.hid> In-Reply-To: <49085904.8080302@domain.hid> Content-Type: text/plain; charset=ISO-8859-1; format=flowed 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: Wolfgang Grandegger Cc: Jan Kiszka , xenomai-core 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. No complaints from my side. > > 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; > } -- Sebastian