From 78d3669b06118510d80a1009b2b59a730a436348 Mon Sep 17 00:00:00 2001 From: Richard Cochran Date: Mon, 26 Aug 2013 14:42:27 +0200 Subject: [PATCH] Inhibit lost link recovery in P2P mode. The closing and reopening of the transport when in slave only mode is not necessary if the port is using the peer delay mechanism. In that case, the port will discover the network error by transmitting a peer delay request. Signed-off-by: Richard Cochran Acked-by: Delio Brignoli --- port.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/port.c b/port.c index 6644685..04174b6 100644 --- a/port.c +++ b/port.c @@ -1991,7 +1991,8 @@ enum fsm_event port_event(struct port *p, int fd_index) if (p->best) fc_clear(p->best); port_set_announce_tmo(p); - if (clock_slave_only(p->clock) && port_renew_transport(p)) { + if (clock_slave_only(p->clock) && p->delayMechanism != DM_P2P && + port_renew_transport(p)) { return EV_FAULT_DETECTED; } return EV_ANNOUNCE_RECEIPT_TIMEOUT_EXPIRES;