git://git.onelab.eu
/
sliver-openvswitch.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
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
bb67e17
..
f786108
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;
}