ofproto-dpif: Enable smooth transition between CFM and BFD.
authorAlex Wang <alexw@nicira.com>
Wed, 21 Aug 2013 02:45:00 +0000 (02:45 +0000)
committerEthan Jackson <ethan@nicira.com>
Tue, 20 Aug 2013 22:08:38 +0000 (15:08 -0700)
commit2d344ba5be310b085806b6e6b80833039465722b
treeda81d3a4369d56cc41cba65cc6d134700dc6dec7
parentc1c4e8c76912a597a6ad964f7b80fc9f63caa7f3
ofproto-dpif: Enable smooth transition between CFM and BFD.

When user switches between using CFM and BFD, there will be a short
down time before the new protocol goes up.  This can unintentionally
change the traffic pattern of the bundled ports.  To prevent this,
it is proposed that user can enable both CFM and BFD before transition,
wait for the new protocol to go up, and then disable the old protocol.

To make this scheme work, this commit modifies the port_run() in
ofproto-dpif.c, so that when both CFM and BFD are used, if either shows
correct status, the port is considered usable in the bundle.

Signed-off-by: Alex Wang <alexw@nicira.com>
ofproto/ofproto-dpif.c
tests/ofproto-dpif.at