vswitchd: Deconfigure CFM when not configured.
authorBen Pfaff <blp@nicira.com>
Fri, 4 Feb 2011 19:01:43 +0000 (11:01 -0800)
committerBen 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

index bb67e17..f786108 100644 (file)
@@ -5021,6 +5021,8 @@ iface_update_cfm(struct iface *iface)
     mon = iface->cfg->monitor;
 
     if (!mon) {
+        cfm_destroy(iface->cfm);
+        iface->cfm = NULL;
         return;
     }