ofproto: Add separate functions for checking bfd/cfm status change.
authorAlex Wang <alexw@nicira.com>
Fri, 30 May 2014 22:07:31 +0000 (15:07 -0700)
committerAlex Wang <alexw@nicira.com>
Sat, 14 Jun 2014 00:47:32 +0000 (17:47 -0700)
commit8f5514fe7c3c2ba0d06405c1f75e08ae78e65ee9
tree68b1a6c0e3c3815246a798470d02881e5f525603
parent685acfd9ff6679a0c6b4f3a53db6b633cf40472d
ofproto: Add separate functions for checking bfd/cfm status change.

Currently, ofproto_port_get_bfd/cfm_status() is used to check the
bfd/cfm status change and query the status change.  Users decide
what to do with the filled status struct based on the return value
of the funciton.  Such design is confusing and makes the caller
code hard to read.

This commit breaks the function into a status change check function
and a status query function, so that they become easier to read and
use.

Signed-off-by: Alex Wang <alexw@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
ofproto/ofproto-dpif.c
ofproto/ofproto-provider.h
ofproto/ofproto.c
ofproto/ofproto.h
vswitchd/bridge.c