On Wed, Jul 05, 2017 at 05:59:51PM +0800, Hangbin Liu wrote:
> @@ -1164,9 +1132,7 @@ struct clock *clock_create(enum clock_type type, struct 
> config *config,
>               port_dispatch(p, EV_INITIALIZE, 0);
>       }
>       port_dispatch(c->uds_port, EV_INITIALIZE, 0);
> -     if (c->pollfd[0].fd >= 0) {
> -             rtnl_link_query(c->pollfd[0].fd);
> -     }

This call should also be called initially by each port in order to find
out the link status from the very start.

If the link is down at start, then the port goes faulty when it first
transmits an event message.

Thanks,
Richard


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Linuxptp-devel mailing list
Linuxptp-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxptp-devel

Reply via email to