• Alessandro Rubini's avatar
    send functions: return -1 on error and 1 on stamping error (stamp invalid) · 9e78f4ac
    Alessandro Rubini authored
    This is the first step to fix a problem introduced by commit 79ffd673
    (a fix to release 4.1.2 forward ported to master).
    
    When we get a bad timestamp in sending sync, we should not return "error"
    but a special value for "no timestamp". Otherwise the caller goes to
    "faulty" state and can't sync any more (this situation loops over).
    
    Also, check for timestamp errors only for event message, or we break
    out of the messaging loop during wr synchronization (when we get bad
    timestamps for frames whose timestamp we don't care about).
    Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
    9e78f4ac
Name
Last commit
Last update
..
constants.h Loading commit data...
diag-macros.h Loading commit data...
ieee1588_types.h Loading commit data...
jiffies.h Loading commit data...
lib.h Loading commit data...
pp-instance.h Loading commit data...
ppsi.h Loading commit data...