Discussion:
[Linuxptp-devel] [PATCH RFC] Inhibit lost link recovery in P2P modes.
Richard Cochran
2013-08-26 09:51:32 UTC
Permalink
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 <***@gmail.com>
---
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;
--
1.7.10.4
Delio Brignoli
2013-08-26 11:45:22 UTC
Permalink
Post by Richard Cochran
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.
---
port.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
Acked-by: Delio Brignoli <***@audioscience.com>

Thanks
--
Delio

Loading...