bfd: Send FINAL immediately after receiving POLL.
authorAlex Wang <alexw@nicira.com>
Fri, 20 Dec 2013 22:53:52 +0000 (14:53 -0800)
committerJarno Rajahalme <jrajahalme@nicira.com>
Fri, 20 Dec 2013 22:53:52 +0000 (14:53 -0800)
commit60d02c72941d5a4aeea85090f120a0cc03e945f2
treee49e34222f69d679098512bcea7c1c0d9fd3e68d
parentd1890de500d012d512ac7a680a2a0dc5e8acf444
bfd: Send FINAL immediately after receiving POLL.

Commit 307464a11 (ofproto-dpif-monitor: Use heap to order the mport
wakeup time.) makes bfd only send packet at specified periodic instant.
This fails to meet the RFC5880 requirement, which requires bfd send
FINAL immediately after receiving POLL.

This commit fixes the above issue by scheduling bfd to send FINAL
within 100 ms after receiving POLL.

Signed-off-by: Alex Wang <alexw@nicira.com>
ofproto/ofproto-dpif-monitor.c
ofproto/ofproto-dpif-monitor.h
ofproto/ofproto-dpif-xlate.c