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; cfg->clock_servo = CLOCK_SERVO_LINREG;
else if (!strcasecmp("ntpshm", value)) else if (!strcasecmp("ntpshm", value))
cfg->clock_servo = CLOCK_SERVO_NTPSHM; cfg->clock_servo = CLOCK_SERVO_NTPSHM;
else if (!strcasecmp("nullf", value))
cfg->clock_servo = CLOCK_SERVO_NULLF;
else else
return BAD_VALUE; return BAD_VALUE;

12
ptp4l.8
View File

@ -318,11 +318,13 @@ generated by the master.
The default is 0 (disabled). The default is 0 (disabled).
.TP .TP
.B clock_servo .B clock_servo
The servo which is used to synchronize the local clock. Valid values are pi for The servo which is used to synchronize the local clock. Valid values
a PI controller, linreg for an adaptive controller using linear regression, and are "pi" for a PI controller, "linreg" for an adaptive controller
ntpshm for the NTP SHM reference clock to allow another process to synchronize using linear regression, "ntpshm" for the NTP SHM reference clock to
the local clock (the SHM segment number is set to the domain number). allow another process to synchronize the local clock (the SHM segment
The default is pi. 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 .TP
.B pi_proportional_const .B pi_proportional_const
The proportional constant of the PI controller. When set to 0.0, the The proportional constant of the PI controller. When set to 0.0, the