The transparent clock code will want to set qualification timeouts.  This
patch exposes the needed method.

Signed-off-by: Richard Cochran <richardcoch...@gmail.com>
---
 port.c         | 2 +-
 port_private.h | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/port.c b/port.c
index 663f36e..a1241c0 100644
--- a/port.c
+++ b/port.c
@@ -1048,7 +1048,7 @@ static int port_set_manno_tmo(struct port *p)
        return set_tmo_log(p->fda.fd[FD_MANNO_TIMER], 1, 
p->logAnnounceInterval);
 }
 
-static int port_set_qualification_tmo(struct port *p)
+int port_set_qualification_tmo(struct port *p)
 {
        return set_tmo_log(p->fda.fd[FD_QUALIFICATION_TIMER],
                       1+clock_steps_removed(p->clock), p->logAnnounceInterval);
diff --git a/port_private.h b/port_private.h
index 391db64..616d71f 100644
--- a/port_private.h
+++ b/port_private.h
@@ -136,6 +136,7 @@ int port_is_enabled(struct port *p);
 void port_link_status(void *ctx, int index, int linkup);
 int port_set_announce_tmo(struct port *p);
 int port_set_delay_tmo(struct port *p);
+int port_set_qualification_tmo(struct port *p);
 void port_show_transition(struct port *p, enum port_state next,
                          enum fsm_event event);
 int process_announce(struct port *p, struct ptp_message *m);
-- 
2.11.0


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Linuxptp-devel mailing list
Linuxptp-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxptp-devel

Reply via email to