Throw an error at the port level on missing transmit time stamps.
We always wait for the transmit time stamp after sending an event message. Thus a missing time stamp is clearly a fault, even if the hardware can only handle one time stamp at a time. Signed-off-by: Richard Cochran <richardcochran@gmail.com>master
parent
51162c01af
commit
5f0c034494
9
port.c
9
port.c
|
@ -356,6 +356,10 @@ static int port_delay_request(struct port *p)
|
||||||
pr_err("port %hu: send delay request failed", portnum(p));
|
pr_err("port %hu: send delay request failed", portnum(p));
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
|
if (msg_sots_missing(msg)) {
|
||||||
|
pr_err("missing timestamp on transmitted delay request");
|
||||||
|
goto out;
|
||||||
|
}
|
||||||
|
|
||||||
if (p->delay_req)
|
if (p->delay_req)
|
||||||
msg_put(p->delay_req);
|
msg_put(p->delay_req);
|
||||||
|
@ -466,6 +470,11 @@ static int port_tx_sync(struct port *p)
|
||||||
err = -1;
|
err = -1;
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
|
if (msg_sots_missing(msg)) {
|
||||||
|
pr_err("missing timestamp on transmitted sync");
|
||||||
|
err = -1;
|
||||||
|
goto out;
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Send the follow up message right away.
|
* Send the follow up message right away.
|
||||||
|
|
Loading…
Reference in New Issue