mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-05 00:45:06 -05:00
refclock_phc: support ethernet ifname as specifier
This commit allows the user to select a PHC refclock associated with an Ethernet interface by specifying the interface name. This allows the user to handle situations where multiple NICs are exposing PHC devices (or non-NIC PHC device files exist in the system) in a more streamline manner.
This commit is contained in:
committed by
Miroslav Lichvar
parent
81362fa201
commit
6e541afbe9
@@ -557,8 +557,9 @@ refclock SHM 1:perm=0644 refid GPS2
|
||||
----
|
||||
+
|
||||
*PHC*:::
|
||||
PTP hardware clock (PHC) driver. The parameter is the path to the device of
|
||||
the PTP clock which should be used as a time source. If the clock is kept in
|
||||
PTP hardware clock (PHC) driver. The parameter is the absolute path to the
|
||||
device of the PTP clock which should be used as a time source, or the name of
|
||||
the network interface whose PTP clock should be used. If the clock is kept in
|
||||
TAI instead of UTC (e.g. it is synchronised by a PTP daemon), the current
|
||||
UTC-TAI offset needs to be specified by the *offset* option. Alternatively, the
|
||||
*pps* refclock option can be enabled to treat the PHC as a PPS refclock, using
|
||||
|
||||
Reference in New Issue
Block a user