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
Richard Cochran 2012-03-11 10:04:42 +01:00
parent 51162c01af
commit 5f0c034494
1 changed files with 9 additions and 0 deletions

9
port.c
View File

@ -356,6 +356,10 @@ static int port_delay_request(struct port *p)
pr_err("port %hu: send delay request failed", portnum(p));
goto out;
}
if (msg_sots_missing(msg)) {
pr_err("missing timestamp on transmitted delay request");
goto out;
}
if (p->delay_req)
msg_put(p->delay_req);
@ -466,6 +470,11 @@ static int port_tx_sync(struct port *p)
err = -1;
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.