Skip to content

Commit

Permalink
timemaster: fix PTP poll configuration for timemaster >=4.2
Browse files Browse the repository at this point in the history
When using timemaster >= 4.2 (currently in Debian Sid), the chrony
config looks like:
  refclock SOCK /var/run/timemaster/chrony.SOCK0 poll 2 filter 4 refid PTP0 precision 1.0e-9 delay 1.0e-09 poll 0

The double poll definition triggers a weird behavior in chrony: PTP is
poll'd every 4s but the Reach/LastRx computation expect a poll every
second. This makes the PTP source looks unreliable (wrongly).

Fix this by using the proper config to setup the PTP poll period "ntp_poll"
(sic)

New config look like:
  refclock SOCK /var/run/timemaster/chrony.SOCK0 poll 0 filter 4 refid PTP0 precision 1.0e-9 delay 1.0e-09

Signed-off-by: Yoann Congal <yoann.congal@smile.fr>
  • Loading branch information
ycongal-smile committed Jan 10, 2025
1 parent 180170a commit 9ccf0a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion roles/timemaster/templates/timemaster.conf.j2
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@

{% if ptp_interface is defined %}
[ptp_domain 0]
ntp_options poll 0
ntp_poll 0
{% if ptp_vlanid is defined %}
interfaces {{ ptp_interface + '.' + ptp_vlanid|string }}
{% else %}

0 comments on commit 9ccf0a9

Please sign in to comment.