ptp clock: Increase tolerance for late follow-up and delay-resp
authorJan Schmidt <jan@centricular.com>
Thu, 11 Oct 2018 03:29:47 +0000 (14:29 +1100)
committerJan Schmidt <jan@centricular.com>
Thu, 11 Oct 2018 11:11:51 +0000 (22:11 +1100)
commit6a653437ac0b470145c021229ba5975c6a3cd617
treed70faadae795c803cac844529081ffc6c454a960
parent6fcd3c135a82db86c3fbca85fa892b07383a26b0
ptp clock: Increase tolerance for late follow-up and delay-resp

The follow-up and delay-resp messages carry precise
timestamps for the arrival at the clock master, but
the local return time is unimportant, so we should be very
lenient in accepting them late. Some PTP masters don't
prioritise sending those packets, and we reject all the
responses and never sync - or take forever to do so.

Increase the tolerance to 20x the mean path delay.

Also fix a typo in one debug output that would print
the absolute time of the delay-resp message, not the offset
from the delay-req that it's actually being compared against.
libs/gst/net/gstptpclock.c