projects
/
openvswitch
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f915f1a
)
vswitchd: Deconfigure CFM when not configured.
author
Ben Pfaff
<blp@nicira.com>
Fri, 4 Feb 2011 19:01:43 +0000
(11:01 -0800)
committer
Ben Pfaff
<blp@nicira.com>
Fri, 4 Feb 2011 19:01:43 +0000
(11:01 -0800)
It looks to me like, once a CFM object is configured on an interface, it
will never get deconfigured. This fixes the problem.
Found by inspection. I haven't tested the original code or the fix.
vswitchd/bridge.c
patch
|
blob
|
history
diff --git
a/vswitchd/bridge.c
b/vswitchd/bridge.c
index bb67e17fc91d041800e6d97d358e63bc9b89365a..f786108cf19af16a4834fcabfb2b85b0978f12c9 100644
(file)
--- a/
vswitchd/bridge.c
+++ b/
vswitchd/bridge.c
@@
-5021,6
+5021,8
@@
iface_update_cfm(struct iface *iface)
mon = iface->cfg->monitor;
if (!mon) {
+ cfm_destroy(iface->cfm);
+ iface->cfm = NULL;
return;
}