Hi Richard,
On Wed, Aug 16, 2017 at 09:32:09PM +0800, Hangbin Liu wrote:
> @@ -2240,6 +2243,35 @@ static void port_link_status(void *ctx, int linkup,
> int ts_index)
> pr_notice("port %hu: link %s", portnum(p), linkup ? "up" :
> "down");
> }
>
> + /* ts_label changed */
On Wed, Aug 16, 2017 at 09:32:09PM +0800, Hangbin Liu wrote:
> + /* ts_label changed */
> + if (if_indextoname(ts_index, ts_label) && strcmp(p->iface->ts_label,
> ts_label)) {
> + strncpy(p->iface->ts_label, ts_label, MAX_IFNAME_SIZE);
> + sk_get_ts_info(p->iface->t
Now the ts label will be either the bond active slave or the interface
name, which is the exactly interface we need to get ts info.
If there is a fail over and ts_label changed, we need to check the
clock_required_modes. We will set the link to LINK_DOWN by force if
the new ts_label's timestamp do