Solarflare Enhanced PTP Daemon. Use multiple PTP and PPS sources and sync local clocks together in one integrated application with high quality timestamp filtering, supporting bonds and VLANs, real time and long term stats reporting.
Other
25
stars
4
forks
source link
Add tstool and option to deduplicate phc devices #16
Drivers for non-Solarflare NICs which present multiple PHC devices for the same underlying clock break sfptpd's monolithic model of managing clock sync between all the NICs on the system as well as any remote sync involved because sfptpd cannot discover the true underlying relationship between the PHC devices and their underlying clocks.
This patch series adds an option phc_dedup on which can be used in the [general] configuration section to perform a destructive calibration exercise at startup to determine mappings between PHC devices and underlying clocks in order to choose which devices sfptpd should use for syncing.
A new tool, tstool, is also added which can help with testing this feature along with other useful control and status operations. This means that similar tools supplied with other PTP daemons do not need to be installed when sfptpd is installed, simply to script some system administration housekeeping exercises.
Here are some useful command examples:
tstool clock list
tstool clock info phc1
tstool clock get phc1
tstool clock step phc1 1.000
tstool clock set_to phc1 system
tstool clock diff phc1 phc2
tstool clock dedup
tstool interface list
tstool interface info enp4s0f0
tstool interface set_ts on all
Drivers for non-Solarflare NICs which present multiple PHC devices for the same underlying clock break sfptpd's monolithic model of managing clock sync between all the NICs on the system as well as any remote sync involved because sfptpd cannot discover the true underlying relationship between the PHC devices and their underlying clocks.
This patch series adds an option
phc_dedup on
which can be used in the[general]
configuration section to perform a destructive calibration exercise at startup to determine mappings between PHC devices and underlying clocks in order to choose which devices sfptpd should use for syncing.A new tool,
tstool
, is also added which can help with testing this feature along with other useful control and status operations. This means that similar tools supplied with other PTP daemons do not need to be installed when sfptpd is installed, simply to script some system administration housekeeping exercises.Here are some useful command examples:
And an example of the deduplication process: