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)
committerBen Pfaff <blp@nicira.com>
Tue, 10 Sep 2013 05:15:09 +0000 (22:15 -0700)
commitd7bfc5ce313a4a2d76ea78e91b215d4bd8c331f0
tree4fb8903db8aaeb56d9a0bd6b7f6c51a615ef75ee
parent3a166d4a851313dd4799dfba72b05892e6fd3381
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