Re: [RFC PATCH v1 1/2] Bluetooth: queue ACL packets if no handle is found

2020-07-17 Thread Alain Michaud
Hi Marcel, On Fri, Jul 17, 2020 at 2:51 AM Marcel Holtmann wrote: > > Hi Alain, > > > >>> There is a possibility that an ACL packet is received before we > > >>> receive the HCI connect event for the corresponding handle. If this > > >>> happens, we discard the ACL packet. > > >>> > > >>> Rather

Re: [RFC PATCH v1 1/2] Bluetooth: queue ACL packets if no handle is found

2020-07-17 Thread Marcel Holtmann
Hi Alain, > >>> There is a possibility that an ACL packet is received before we > >>> receive the HCI connect event for the corresponding handle. If this > >>> happens, we discard the ACL packet. > >>> > >>> Rather than just ignoring them, this patch provides a queue for > >>> incoming ACL

Re: [RFC PATCH v1 1/2] Bluetooth: queue ACL packets if no handle is found

2020-07-15 Thread Luiz Augusto von Dentz
Hi Alain, On Wed, Jul 15, 2020 at 8:10 AM Alain Michaud wrote: > > Resending in plain text. I've sent a RFC to work out the ordering, that should work out for any race where it process ACL before Events during a polling interval (1ms) so I hope that is enough to catch all these races, if that

Re: [RFC PATCH v1 1/2] Bluetooth: queue ACL packets if no handle is found

2020-07-15 Thread Alain Michaud
Resending in plain text. On Wed, Jul 15, 2020 at 9:56 AM Alain Michaud wrote: > > Hi Marcel, > > Sorry, just got around to this. > > On Tue, Jun 30, 2020 at 2:55 AM Marcel Holtmann wrote: >> >> Hi Archie, >> >> >>> There is a possibility that an ACL packet is received before we >> >>> receive

Re: [RFC PATCH v1 1/2] Bluetooth: queue ACL packets if no handle is found

2020-06-30 Thread Marcel Holtmann
Hi Archie, >>> There is a possibility that an ACL packet is received before we >>> receive the HCI connect event for the corresponding handle. If this >>> happens, we discard the ACL packet. >>> >>> Rather than just ignoring them, this patch provides a queue for >>> incoming ACL packet without a

Re: [RFC PATCH v1 1/2] Bluetooth: queue ACL packets if no handle is found

2020-06-30 Thread Archie Pusaka
Hi Marcel, On Mon, 29 Jun 2020 at 14:40, Marcel Holtmann wrote: > > Hi Archie, > > > There is a possibility that an ACL packet is received before we > > receive the HCI connect event for the corresponding handle. If this > > happens, we discard the ACL packet. > > > > Rather than just ignoring

Re: [RFC PATCH v1 1/2] Bluetooth: queue ACL packets if no handle is found

2020-06-29 Thread Marcel Holtmann
Hi Archie, > There is a possibility that an ACL packet is received before we > receive the HCI connect event for the corresponding handle. If this > happens, we discard the ACL packet. > > Rather than just ignoring them, this patch provides a queue for > incoming ACL packet without a handle. The

[RFC PATCH v1 1/2] Bluetooth: queue ACL packets if no handle is found

2020-06-27 Thread Archie Pusaka
From: Archie Pusaka There is a possibility that an ACL packet is received before we receive the HCI connect event for the corresponding handle. If this happens, we discard the ACL packet. Rather than just ignoring them, this patch provides a queue for incoming ACL packet without a handle. The