Change STP parameters to the minimum values allowed by 802.1D.
authorBen Pfaff <blp@nicira.com>
Tue, 16 Sep 2008 23:06:43 +0000 (16:06 -0700)
committerBen Pfaff <blp@nicira.com>
Tue, 16 Sep 2008 23:06:43 +0000 (16:06 -0700)
This makes the secchan start up much faster.

lib/stp.c

index 6f7f09a..4fd2f46 100644 (file)
--- a/lib/stp.c
+++ b/lib/stp.c
@@ -230,9 +230,9 @@ stp_create(const char *name, stp_identifier bridge_id,
     if (!(stp->bridge_id >> 48)) {
         stp->bridge_id |= UINT64_C(32768) << 48;
     }
-    stp->max_age = SECONDS_TO_TIMER(20);
-    stp->hello_time = SECONDS_TO_TIMER(2);
-    stp->forward_delay = SECONDS_TO_TIMER(15);
+    stp->max_age = SECONDS_TO_TIMER(6);
+    stp->hello_time = SECONDS_TO_TIMER(1);
+    stp->forward_delay = SECONDS_TO_TIMER(4);
     stp->bridge_max_age = stp->max_age;
     stp->bridge_hello_time = stp->hello_time;
     stp->bridge_forward_delay = stp->forward_delay;