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

2020-07-16 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 packet

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 is

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

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