Re: [Linuxptp-devel] [PATCH v2 2/3] clock: dump unexpected packets received on the error queues of
PTP IEEE 1588 stack for Linux
Brought to you by:
rcochran
From: Richard C. <ric...@gm...> - 2020-06-24 16:27:13
|
On Fri, Jun 19, 2020 at 10:45:23PM +0300, Vladimir Oltean wrote: > Yes, much better. May I add your tag to the commit message, like this? Catch unexpected socket polling errors. The poll(2) system call may set POLLERR in the returned events. Normally no errors are returned unless specifically requested by setting an appropriate socket option. Nevertheless, the poll(2) API is quite generic, and there is no guarantee that the kernel networking stack might push an error event one day. This patch adds defensive code in order to catch any unexpected error condition. Suggested-by: Vladimir Oltean <ol...@gm...> Signed-off-by: Richard Cochran <ric...@gm...> |