Add a configuration option to use the "nullf" servo.

Signed-off-by: Richard Cochran <richardcochran@gmail.com>
master
Richard Cochran 2015-06-08 16:08:29 +02:00
parent fa79141211
commit ae09c1c4c0
2 changed files with 9 additions and 5 deletions

View File

@ -534,6 +534,8 @@ static enum parser_result parse_global_setting(const char *option,
cfg->clock_servo = CLOCK_SERVO_LINREG;
else if (!strcasecmp("ntpshm", value))
cfg->clock_servo = CLOCK_SERVO_NTPSHM;
else if (!strcasecmp("nullf", value))
cfg->clock_servo = CLOCK_SERVO_NULLF;
else
return BAD_VALUE;

12
ptp4l.8
View File

@ -318,11 +318,13 @@ generated by the master.
The default is 0 (disabled).
.TP
.B clock_servo
The servo which is used to synchronize the local clock. Valid values are pi for
a PI controller, linreg for an adaptive controller using linear regression, and
ntpshm for the NTP SHM reference clock to allow another process to synchronize
the local clock (the SHM segment number is set to the domain number).
The default is pi.
The servo which is used to synchronize the local clock. Valid values
are "pi" for a PI controller, "linreg" for an adaptive controller
using linear regression, "ntpshm" for the NTP SHM reference clock to
allow another process to synchronize the local clock (the SHM segment
number is set to the domain number), and "nullf" for a servo that
always dials frequency offset zero (for use in SyncE nodes).
The default is "pi."
.TP
.B pi_proportional_const
The proportional constant of the PI controller. When set to 0.0, the