Commit ce414c80 authored by Alessandro Rubini's avatar Alessandro Rubini

wrc_main: call ipv4_poll at link-down event, so it knows

This is needed for the syslog code to know about link up and down
events, to report a link-up with the delay since last link-down.
Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
parent d818c48a
......@@ -179,6 +179,12 @@ int main(void)
}
switch (l_status) {
case LINK_WENT_DOWN:
if (wrc_ptp_get_mode() == WRC_MODE_SLAVE) {
spll_init(SPLL_MODE_FREE_RUNNING_MASTER, 0, 1);
shw_pps_gen_enable_output(0);
}
/* fall through */
case LINK_WENT_UP:
case LINK_UP:
update_rx_queues();
......@@ -187,13 +193,6 @@ int main(void)
arp_poll();
}
break;
case LINK_WENT_DOWN:
if (wrc_ptp_get_mode() == WRC_MODE_SLAVE) {
spll_init(SPLL_MODE_FREE_RUNNING_MASTER, 0, 1);
shw_pps_gen_enable_output(0);
}
break;
}
ui_update();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment