From: Ben Pfaff Date: Tue, 23 Sep 2008 16:51:00 +0000 (-0700) Subject: stp: Increase hello time to 2 seconds. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a846b3519b004f95d2b3ab0aabd756f27f8c881d;p=openvswitch stp: Increase hello time to 2 seconds. 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. --- diff --git a/lib/stp.c b/lib/stp.c index 4fd2f466..8b50584c 100644 --- 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;