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 <richardcoch...@gmail.com>
---
 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);
-- 
2.20.1



_______________________________________________
Linuxptp-devel mailing list
Linuxptp-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxptp-devel

Reply via email to