From 271a6d53f69f1c3e5a05ca07421b8e6cc94f4155 Mon Sep 17 00:00:00 2001 From: Richard Cochran Date: Thu, 16 Apr 2020 14:38:52 -0700 Subject: [PATCH] port: Support slave event monitoring of delay timing data. After a successful message exchange, the delay measurement values are processed by the port code. This patch makes the values available to a monitor by calling the appropriate method. Signed-off-by: Richard Cochran --- port.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/port.c b/port.c index a74937c..729cbd7 100644 --- a/port.c +++ b/port.c @@ -1952,6 +1952,9 @@ void process_delay_resp(struct port *p, struct ptp_message *m) t4 = timestamp_to_tmv(m->ts.pdu); t4c = tmv_sub(t4, c3); + monitor_delay(p->slave_event_monitor, clock_parent_identity(p->clock), + m->header.sequenceId, t3, c3, t4); + clock_path_delay(p->clock, t3, t4c); TAILQ_REMOVE(&p->delay_req, req, list);