port: update timeout after changing logMinDelayReqInterval.

When the minimum delay request interval is changed after processing a
delay response, update the current timeout to immediately follow the new
interval.

Signed-off-by: Miroslav Lichvar <mlichvar@redhat.com>
master
Miroslav Lichvar 2018-02-15 12:48:38 +01:00 committed by Richard Cochran
parent bd5f3d09e7
commit 16e9abceee
1 changed files with 1 additions and 0 deletions

1
port.c
View File

@ -1723,6 +1723,7 @@ static void process_delay_resp(struct port *p, struct ptp_message *m)
p->logMinDelayReqInterval = rsp->hdr.logMessageInterval;
pr_notice("port %hu: minimum delay request interval 2^%d",
portnum(p), p->logMinDelayReqInterval);
port_set_delay_tmo(p);
}
static void process_follow_up(struct port *p, struct ptp_message *m)