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 6f7f09a540cf0cb1f400c16f4d6cf42b7de39df3..4fd2f466f81aa269915146f2e3b0429519eaaa86 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;