cfm: Report opup as undefined if not in extended mode.
authorEthan Jackson <ethan@nicira.com>
Fri, 10 Aug 2012 23:36:18 +0000 (16:36 -0700)
committerEthan Jackson <ethan@nicira.com>
Mon, 13 Aug 2012 19:49:15 +0000 (12:49 -0700)
commit4653c5583a3ec9d7184782fee3d2f93602795686
tree039d7b194010375a4332b13a96c8ce8455c311cb
parent1ee62357e91d08a0bf901830805037680c88eece
cfm: Report opup as undefined if not in extended mode.

The cfm_get_opup() function's result doesn't make sense when CFM is
not configured in extended mode.  This patch makes it report -1 in
this case.  Future patches will rely on this behavior.

Signed-off-by: Ethan Jackson <ethan@nicira.com>
lib/cfm.c
lib/cfm.h
ofproto/ofproto-dpif.c