bridge: Fix interpretation of 'health' member of struct ofproto_cfm_status.
authorBen Pfaff <blp@nicira.com>
Wed, 6 Mar 2013 22:50:26 +0000 (14:50 -0800)
committerBen Pfaff <blp@nicira.com>
Thu, 7 Mar 2013 00:23:28 +0000 (16:23 -0800)
commit4cd9ab26c3a265d168d082b9e50777b9306fe2f8
tree91697389481496637463172a9f4ec986c03cf56b
parent18637fdc2e3279240b61eef5162aaff159e766d0
bridge: Fix interpretation of 'health' member of struct ofproto_cfm_status.

Commit 9a9e3786b3a8 (ofproto: Merge all the CFM query functions into one.)
mistakenly interpreted struct ofproto_cfm_status as always being in the
range [0,100].  It can in fact take the value -1 if the health status is
not currently well-defined.

Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Ethan Jackson <ethan@nicira.com>
ofproto/ofproto.h
vswitchd/bridge.c