On Fri, May 11, 2012 at 07:34:12PM +0000, Keller, Jacob E wrote:
Sorry for the spam here, but I looked at the ixgbe code, and found a
solution. When ptp4l discovers a missing rx timestamp, it faults and
then waits for 15 seconds until the fault is cleared. After this, it
reopens the socket, and reruns the hwtstamp ioctl. This function
actually does clear the tx/rx timestamps (just in case) So after a
fault the values should end up being reset. Is this good enough?
Yes, for ptp4l, that will work, but this program is acting extremely
defensively in that situation. Not every user space program will
necessarily behave in the same way. The classic ptpd just ignores
packets with missing time stamps, IRRC.
Richard