-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathptp_slave.cfg
151 lines (121 loc) · 5.07 KB
/
ptp_slave.cfg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
#
# Example configuration for sfptpd operating as a PTP slave
#
# SPDX-License-Identifier: BSD-3-Clause
# (c) Copyright 2012-2022 Xilinx, Inc.
#
#
# Generic Configuration
#
[general]
# Create a PTP Synchronization Module instance.
sync_module ptp ptp1
# Specify whether messages are sent to the syslog, stderr or to a file. By default
# messages are sent to stderr.
# message_log /local/sfptpd_msgs.txt
message_log stderr
# Specify whether stats logging is enabled and whether stats are sent to stdout
# or to a file
# stats_log /local/sfptpd_stats.txt
stats_log stdout
# Specifies whether to attempt using hardware timestamps on non-Solarflare
# hardware. Its driver must support raw hardware timestamps and expose a PHC
# device adjustable via clock_adjtime (adjtimex). If enabling, watch out for
# NICs advertising separate clocks that are actually shared resulting in
# inconsistent correction or not accepting clock adjustments.
non_solarflare_nics off
# In the event of a NIC reset or otherwise causing the NIC clock to read
# the Unix epoch time, immediately correct the NIC clock in addition to the
# default behaviour of preventing the wrong time from propagating.
epoch_guard correct-clock
#
# PTP Instance Configuration
#
[ptp1]
# Specify PTP Slave mode
ptp_mode slave
# Enable dump of each received PTP packet in detail - produces lots of output!
# ptp_pkt_dump
# Enable logging of PPS measurements
# ptp_pps_log
# TX and RX transmission latencies in nanoseconds - use to correct for network
# asymmetry.
ptp_tx_latency 0
ptp_rx_latency 0
# Specify the PTP delay mechanism - end-to-end or peer-to-peer
ptp_delay_mechanism end-to-end
# Specify the PTP network mode - conventional multicast or hybrid
# ptp_network_mode hybrid
# Use to modify the PTP domain in the range 0..255. Default is 0.
# ptp_domain 0
# Sets the convergence threshold in ns, the maximum offset from the clock
# source over a 60s period to be considered in sync. The default is 1000 or
# 100000 if software timestamping is in use.
# sync_threshold 1000.0
#
# PTP Generic Configuration
#
[ptp]
# Specify the interface to use.
# interface eth1
# Multicast TTL value. Default is 64.
# ptp_ttl 64
# Configures how PTP handles the UTC offset valid flag. The specification is
# ambigious in its description of the meaning of the UTC offset valid flag
# and this has resulted in varying different implementations. In most
# implementations, if the UTC offset valid flag is not set then the UTC offset
# is not used but in others, the UTC offset valid is an indication that the
# master is completely confident that the UTC offset is correct. Various
# options are supported:
# default If UTCV is set use the UTC offset, otherwise do not use it
# ignore Do not used the UTCV flag - always apply the indicated UTC offset
# prefer Prefer GMs that have UTCV flag set above those that don't
# require Do not accept GMs that do not set UTCV
# ptp_utc_valid_handling default
# Configure PTP management message support. Disabled by default. Possible
# values are:
# disabled Management messages disabled
# read-only Only requests to read information (GET) will be accepted
# ptp_mgmt_msgs disabled
# Access Control Lists
# This feature restricts the set of network addresses from which PTP will listen
# to timing and management messages. The control uses an allow and deny list
# and the option to specify the order in which the lists are evaluated. There are
# separate controls for timing and management messages.
# Each list should be a series of network address in the format a.b.c.d/x where
# a.b.c.d specifies the subnet and x the mask - to specify a single IP address
# a mask of 32 should be specified.
# When enabled, each time that a PTP message is received, the source IP address
# of the incoming message is matched against the allow and deny lists. The second
# list in the ordering creates exceptions for the first list and the default
# action is the opposite of the first list type.
# The network addresses in each list should be separated with spaces or commas e.g.
# 192.168.1.0/24 192.168.4.0/24 172.10.11.1/32 or
# 192.168.1.0/24,192.168.4.0/24,172.10.11.1/32
#
# ptp_timing_acl_allow 172.16.128.48/32 172.16.128.47/32
# ptp_timing_acl_deny 172.16.128.0/21
# ptp_timing_acl_order deny-allow
#
# ptp_mgmt_acl_allow 10.10.1.1/32 10.12.1.0/24
# ptp_mgmt_acl_deny 172.0.0.0/8
# ptp_mgmt_acl_order allow-deny
# The Announce receipt timeout in multiples of the announce interval.
# ptp_announce_timeout 6
# The Sync Packet receipt timeout in multiples of the sync packet interval.
# ptp_sync_pkt_timeout 6
# The Delay Request in interval in 2^number seconds. If specified for a
# PTP slave, this overrides the value communicated to the slave from the
# master.
# ptp_delayreq_interval 0
# The Delay Response receipt timeout 2^number seconds. Default is -2 (250ms).
# ptp_delayresp_timeout -2
# The maximum number of foreign master records a node is enable to store
# simultaneously.
# ptp_max_foreign_records 16
# Set PTPD debug message level. Defaults to 0 (off).
# ptp_trace 0
# Set the PPS propagation delay
# [pps]
# pps_delay 0.0
# fin