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
> -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
> -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
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
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
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
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
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
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: