Re: [Linuxptp-devel] Master still sends out DELAY_REQ

2018-08-21 Thread Vincent Li X
-devel@lists.sourceforge.net; Mats Bergman H Subject: Re: [Linuxptp-devel] Master still sends out DELAY_REQ On Mon, Aug 20, 2018 at 03:20:12PM +, Vincent Li X wrote: > Could the reason be like this? > > 1. Event we cancel the FD_DELAY_TIMER? ... > 1. But there is already time

Re: [Linuxptp-devel] Master still sends out DELAY_REQ

2018-08-20 Thread Richard Cochran
On Mon, Aug 20, 2018 at 03:20:12PM +, Vincent Li X wrote: > Could the reason be like this? > > 1. Event we cancel the FD_DELAY_TIMER? ... > 1. But there is already timeout event on epoll? > 2. Soon epoll event comes, we re-arm the FD_DELAY_TIMER again. This was changed in: commi

[Linuxptp-devel] Master still sends out DELAY_REQ

2018-08-20 Thread Vincent Li X
Hi, We found a tricky scenario is that after port goes from SLAVE->MASTER state, it still sends out DELAY_REQ continuously by default interval. Given that we are running interval as -6, the delay interval is random(0, 2*2pow interval), the timer could be short. Could the reason be like this?