stp: Increase hello time to 2 seconds.
authorBen Pfaff <blp@nicira.com>
Tue, 23 Sep 2008 16:51:00 +0000 (09:51 -0700)
committerBen Pfaff <blp@nicira.com>
Tue, 23 Sep 2008 16:51:00 +0000 (09:51 -0700)
An STP advertisement is sent after every expiry of the hello timer, so
this reduces STP advertisements to once every 2 seconds.

Once a second seemed like too often.

Suggested by Justin.

lib/stp.c

index 4fd2f466f81aa269915146f2e3b0429519eaaa86..8b50584c09e8760ee987644a82ca94341861d1bf 100644 (file)
--- a/lib/stp.c
+++ b/lib/stp.c
@@ -231,7 +231,7 @@ stp_create(const char *name, stp_identifier bridge_id,
         stp->bridge_id |= UINT64_C(32768) << 48;
     }
     stp->max_age = SECONDS_TO_TIMER(6);
-    stp->hello_time = SECONDS_TO_TIMER(1);
+    stp->hello_time = SECONDS_TO_TIMER(2);
     stp->forward_delay = SECONDS_TO_TIMER(4);
     stp->bridge_max_age = stp->max_age;
     stp->bridge_hello_time = stp->hello_time;