Re: [Linuxptp-devel] [PATCH 2/3] clock: Dump unexpected packets received on the error queues of sockets

2019-12-17 Thread Keller, Jacob E
> -Original Message- > From: Vladimir Oltean > Sent: Tuesday, December 17, 2019 12:34 PM > To: Keller, Jacob E > Cc: richardcoch...@gmail.com; linuxptp-devel@lists.sourceforge.net > Subject: Re: [Linuxptp-devel] [PATCH 2/3] clock: Dump unexpected packets > receive

Re: [Linuxptp-devel] [PATCH 2/3] clock: Dump unexpected packets received on the error queues of sockets

2019-12-17 Thread Vladimir Oltean
On Tue, 17 Dec 2019 at 22:04, Keller, Jacob E wrote: > > -Original Message- > > From: Vladimir Oltean > > Sent: Monday, December 16, 2019 3:11 PM > > To: richardcoch...@gmail.com > > Cc: linuxptp-devel@lists.sourceforge.net > > Subject: [Lin

[Linuxptp-devel] [PATCH 2/3] clock: Dump unexpected packets received on the error queues of sockets

2019-12-16 Thread Vladimir Oltean
In the current design of the SO_SELECT_ERR_QUEUE socket option (which is enabled by sk_timestamping_init on the event fd), it is a bug to only check revents & POLLIN, but not also POLLERR. Normally the error queue events that the application expects (i.e. TX timestamps) are received, within a