Commit 5c918341 authored by Alessandro Rubini's avatar Alessandro Rubini

wrs-socket: if UDP is requested, fall back to non-WR

Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
parent 03986580
......@@ -360,6 +360,13 @@ static int wrs_net_init(struct pp_instance *ppi)
if (r)
return r;
if (!ppi->ethernet_mode) {
pp_diag(ppi, frames, 1, "%s: Can't do White Rabbit over UDP,"
" falling back to normal PTP\n", __func__);
ppi->n_ops = &unix_net_ops;
return 0;
}
r = minipc_call(hal_ch, DEFAULT_TO, &__rpcdef_get_port_state,
&pstate, ppi->iface_name);
......
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