Discussion:
[Linuxptp-devel] [PATCH 1/4] Schedule announce TX timeout also when in slave-only mode
Delio Brignoli
2013-11-19 13:42:38 UTC
Permalink
Signed-off-by: Delio Brignoli <***@audioscience.com>
---
port.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/port.c b/port.c
index 94c5cac..5604987 100644
--- a/port.c
+++ b/port.c
@@ -1937,6 +1937,7 @@ static void port_p2p_transition(struct port *p, enum port_state next)
port_disable(p);
break;
case PS_LISTENING:
+ set_tmo_log(p->fda.fd[FD_MANNO_TIMER], 1, -10); /*~1ms*/
port_set_announce_tmo(p);
break;
case PS_PRE_MASTER:
@@ -1993,6 +1994,7 @@ int port_dispatch(struct port *p, enum fsm_event event, int mdiff)
port_show_transition(p, next, event);
p->state = next;
if (next == PS_LISTENING && p->delayMechanism == DM_P2P) {
+ set_tmo_log(p->fda.fd[FD_MANNO_TIMER], 1, -10); /*~1ms*/
port_set_delay_tmo(p);
}
return 1;
--
1.7.0.4
Loading...