• Aurelio Colosimo's avatar
    arch-wrs/main-loop.c: handle "link-up/link-down" events · 330381f3
    Aurelio Colosimo authored
    Check whether pp_instance port link is up or down. Force a new
    initialization in case link brings up. Do not call state machine for
    pp_instances whose link is down.
    
    This patch is inspired to how ptp-noposix (commit 2e46712e59) handles link
    status.
    
    Still missing (and thus declared with a FIXME) the reset of slave structures.
    On the single link, this lack does not cause issues. Anyway, must be fixed
    Signed-off-by: Aurelio Colosimo's avatarAurelio Colosimo <aurelio@aureliocolosimo.it>
    330381f3
main-loop.c 3.93 KB