Restore the default maximum backoff to 15 seconds for secchan and vswitchd.
authorBen Pfaff <blp@nicira.com>
Wed, 18 Mar 2009 19:42:38 +0000 (12:42 -0700)
committerBen Pfaff <blp@nicira.com>
Wed, 18 Mar 2009 19:42:38 +0000 (12:42 -0700)
15 seconds has always been the documented default maximum backoff, but the
secchan restructuring accidentally changed it to 1 second.

Thanks to Reid for noticing.

secchan/main.c
vswitchd/bridge.c

index 58d4210be3f9029a3f4308ce2e7342325031e16b..40f1353e02f0f22b9160a661b048b052b6c070f1 100644 (file)
@@ -304,7 +304,7 @@ parse_options(int argc, char *argv[], struct ofsettings *s)
     s->fail_mode = FAIL_OPEN;
     s->max_idle = 0;
     s->probe_interval = 0;
-    s->max_backoff = 0;
+    s->max_backoff = 15;
     s->update_resolv_conf = true;
     s->rate_limit = 0;
     s->burst_limit = 0;
index 0429a6d18c372bda09cdc79d249ee0bbc5f5304f..35093fab73d2ba07353cc4048594df94a8e7b95d 100644 (file)
@@ -910,9 +910,14 @@ bridge_reconfigure_one(struct bridge *br)
         ofproto_set_probe_interval(br->ofproto,
                 probe ? probe : cfg_get_int(0, "mgmt.inactivity-probe"));
 
-        max_backoff = cfg_get_int(0, "%s.max-backoff", pfx);      
-        ofproto_set_max_backoff(br->ofproto,
-                max_backoff ? max_backoff : cfg_get_int(0, "mgmt.max-backoff"));
+        max_backoff = cfg_get_int(0, "%s.max-backoff", pfx);
+        if (!max_backoff) {
+            max_backoff = cfg_get_int(0, "mgmt.max-backoff");
+            if (!max_backoff) {
+                max_backoff = 15;
+            }
+        }
+        ofproto_set_max_backoff(br->ofproto, max_backoff);
 
         ofproto_set_stp(br->ofproto, cfg_get_bool(0, "%s.stp", pfx));