• Alessandro Rubini's avatar
    wrs-socket: bugfix: wait for late tx stamps · 4179fcdc
    Alessandro Rubini authored
    When the wrs has high data traffic, the tx stamp can be delayed more than
    the time it takes for software to poll for it.
    
    What happened is that we got back -EAGAIN, but when collecting the
    next stamp we got the previous one, and sync goes nuts ever after.
    
    This uses poll() to wait a little for the timestamp.
    
    Moreover, we check the frame we get back, so we can discard it in case
    some unsync between tx frames and timestamps happen -- checking frame
    contents is the suggested policy anyways, but I've been lazy in this,
    when I drafted this wrs support.
    Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
    4179fcdc
Name
Last commit
Last update
arch-bare-i386 Loading commit data...
arch-bare-x86-64 Loading commit data...
arch-sim Loading commit data...
arch-unix Loading commit data...
arch-wrpc Loading commit data...
arch-wrs Loading commit data...
configs Loading commit data...
doc Loading commit data...
etc Loading commit data...
include/ppsi Loading commit data...
lib Loading commit data...
lib-bare Loading commit data...
pp_printf Loading commit data...
proto-ext-whiterabbit Loading commit data...
proto-standard Loading commit data...
scripts Loading commit data...
time-bare Loading commit data...
time-sim Loading commit data...
time-unix Loading commit data...
time-wrpc Loading commit data...
time-wrs Loading commit data...
tools Loading commit data...
.gitignore Loading commit data...
AUTHORS Loading commit data...
COPYING Loading commit data...
COPYING.LIB Loading commit data...
Kconfig Loading commit data...
MAKEALL Loading commit data...
Makefile Loading commit data...
Makefile.kconfig Loading commit data...
diag.c Loading commit data...
fsm.c Loading commit data...