[Linuxptp-devel] [PATCH] Add new CLOCK_STATS_NP TLV GET to pmc and clock

2021-05-25 Thread Tim Martin
Currently there is no way to programmatically access statistics about the clock frequency offset, time delay, or time offset (collectively, the "clock_stats" metrics), except for parsing the ptp4l logs. One option for time offset would be to poll TLV_TIME_STATUS_NP in regular intervals from a

Re: [Linuxptp-devel] [PATCH 2/3] clock: Reset clock check on port state change.

2021-05-25 Thread Keller, Jacob E
> -Original Message- > From: Miroslav Lichvar > Sent: Tuesday, May 25, 2021 5:28 AM > To: linuxptp-devel@lists.sourceforge.net > Subject: [Linuxptp-devel] [PATCH 2/3] clock: Reset clock check on port state > change. > > Reset the clock check to avoid false positives when switching

Re: [Linuxptp-devel] [PATCH 1/3] clock: Reset state when switching port with same best clock.

2021-05-25 Thread Keller, Jacob E
> -Original Message- > From: Miroslav Lichvar > Sent: Tuesday, May 25, 2021 5:28 AM > To: linuxptp-devel@lists.sourceforge.net > Subject: [Linuxptp-devel] [PATCH 1/3] clock: Reset state when switching port > with > same best clock. > > When the best port is changed, but the ID of the

[Linuxptp-devel] [PATCH 3/3] port: Don't check timestamps from non-slave ports.

2021-05-25 Thread Miroslav Lichvar
Don't perform the sanity check on receive timestamps from ports in non-slave states to avoid false positives in the jbod mode, where the timestamps can be generated by different clocks. Reported-by: Amar Subramanyam Signed-off-by: Miroslav Lichvar --- port.c | 5 - 1 file changed, 4

[Linuxptp-devel] [PATCH 1/3] clock: Reset state when switching port with same best clock.

2021-05-25 Thread Miroslav Lichvar
When the best port is changed, but the ID of the best clock doesn't change (e.g. a passive port is activated on link failure), reset the current delay and other master/link-specific state to avoid the switch throwing the clock off. Signed-off-by: Miroslav Lichvar --- clock.c | 2 +- 1 file

[Linuxptp-devel] [PATCH 2/3] clock: Reset clock check on port state change.

2021-05-25 Thread Miroslav Lichvar
Reset the clock check to avoid false positives when switching between slave and non-slave state and the clock is controlled by an external process (e.g. phc2sys -rr). Signed-off-by: Miroslav Lichvar --- clock.c | 1 + clockcheck.c | 9 - clockcheck.h | 6 ++ 3 files changed, 15

[Linuxptp-devel] [PATCH 0/3] Fixes for sanity clock check

2021-05-25 Thread Miroslav Lichvar
These patches should make the clock check more reliable, e.g. when the clock is controlled externally by another process, or when there are multiple clocks in the jbod mode as was discussed recently on this list. The first patch is not strictly related to the clock check, e.g. it also fixes the

Re: [Linuxptp-devel] [PATCH v3 1/1] Add master only management TLV

2021-05-25 Thread Richard Cochran
On Mon, May 24, 2021 at 01:24:10AM +0200, Erez Geva wrote: > - Add support in the pmc tool > - Add the TLV in port module. > > Signed-off-by: Erez Geva Applied. Thanks, Richard ___ Linuxptp-devel mailing list Linuxptp-devel@lists.sourceforge.net

Re: [Linuxptp-devel] [PATCH v3 1/1] Add master only management TLV

2021-05-25 Thread Geva, Erez
The value comes from configuration on start up. Our configuration file is read only. The patch only implement a read operation (GET). Erez From: luigi.mantell...@sm-optics.com Sent: Monday, 24 May 2021 08:53 To: linuxptp-devel@lists.sourceforge.net; Geva, Erez (ext) (DI PA DCP R 3) Subject: