cfm: update remote opstate only when a CCM is received.
authorPaul Ingram <pingram@nicira.com>
Sat, 3 Aug 2013 07:12:36 +0000 (07:12 +0000)
committerEthan Jackson <ethan@nicira.com>
Mon, 5 Aug 2013 20:17:05 +0000 (13:17 -0700)
commit016953ae96bebb3d3c421757d1f98b9966433bd1
tree1c999296646f3d5d0d21958df74ea9f21c21f0f8
parentde8d2ef9dd141f4a96d4b79afbfadb3c4eb042c7
cfm: update remote opstate only when a CCM is received.

The remote opstate for a CFM interface is presumed to be up unless a CCM is
received which signals opstate down. This means than an interface configured
for CFM demand mode may incorrectly appear to be opstate up if it has not
received a CCM within the last fault interval.

We should remember the last remote opstate for a CFM interface and only
change it when a CCM arrives signaling a change.

Bug #18806
Signed-off-by: Paul Ingram <pingram@nicira.com>
Signed-off-by: Ethan Jackson <ethan@nicira.com>
Acked-by: Ethan Jackson <ethan@nicira.com>
AUTHORS
lib/cfm.c