This change ensure that all timers timeouts are handled just before the
PTP message handling.
The PTP message hanlding code can performe timerfd_settime() calls that
invalidate the status of timer descriptors. This side effect is not
noticed until now because we never read from the timer descriptors.

Signed-off-by: Luigi Mantellini <luigi.mantell...@sm-optics.com>
---
 fd.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/fd.h b/fd.h
index 16420d7..038d156 100644
--- a/fd.h
+++ b/fd.h
@@ -29,8 +29,6 @@
  * same call to poll().
  */
 enum {
-       FD_EVENT,
-       FD_GENERAL,
        FD_DELAY_TIMER,
        FD_ANNOUNCE_TIMER,
        FD_SYNC_RX_TIMER,
@@ -39,6 +37,8 @@ enum {
        FD_SYNC_TX_TIMER,
        FD_UNICAST_REQ_TIMER,
        FD_UNICAST_SRV_TIMER,
+       FD_EVENT,
+       FD_GENERAL,
        FD_RTNL,
        N_POLLFD,
 };
-- 
2.40.0



_______________________________________________
Linuxptp-devel mailing list
Linuxptp-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxptp-devel

Reply via email to