Provide the clock with the estimated neighbor rate ratio.
Signed-off-by: Richard Cochran <richardcochran@gmail.com>master
parent
5e40b5ec01
commit
f38338827b
4
clock.c
4
clock.c
|
@ -70,6 +70,7 @@ struct clock {
|
|||
tmv_t path_delay;
|
||||
struct mave *avg_delay;
|
||||
struct freq_estimator fest;
|
||||
double nrr;
|
||||
tmv_t c1;
|
||||
tmv_t c2;
|
||||
tmv_t t1;
|
||||
|
@ -685,9 +686,10 @@ void clock_path_delay(struct clock *c, struct timespec req, struct timestamp rx,
|
|||
pr_debug("path delay %10lld %10lld", c->path_delay, pd);
|
||||
}
|
||||
|
||||
void clock_peer_delay(struct clock *c, tmv_t ppd)
|
||||
void clock_peer_delay(struct clock *c, tmv_t ppd, double nrr)
|
||||
{
|
||||
c->path_delay = ppd;
|
||||
c->nrr = nrr;
|
||||
}
|
||||
|
||||
void clock_remove_fda(struct clock *c, struct port *p, struct fdarray fda)
|
||||
|
|
3
clock.h
3
clock.h
|
@ -142,8 +142,9 @@ void clock_path_delay(struct clock *c, struct timespec req, struct timestamp rx,
|
|||
* Provide the estimated peer delay from a slave port.
|
||||
* @param c The clock instance.
|
||||
* @param ppd The peer delay as measured on a slave port.
|
||||
* @param nrr The neighbor rate ratio as measured on a slave port.
|
||||
*/
|
||||
void clock_peer_delay(struct clock *c, tmv_t ppd);
|
||||
void clock_peer_delay(struct clock *c, tmv_t ppd, double nrr);
|
||||
|
||||
/**
|
||||
* Poll for events and dispatch them.
|
||||
|
|
Loading…
Reference in New Issue