]> git.proxmox.com Git - ovs.git/commitdiff
stp: Send BPDU when STP starts up, instead of waiting a hello time.
authornickcooper-zhangtonghao <nic@opencloud.tech>
Tue, 7 Mar 2017 13:11:30 +0000 (05:11 -0800)
committerBen Pfaff <blp@ovn.org>
Fri, 17 Mar 2017 19:36:10 +0000 (12:36 -0700)
Signed-off-by: nickcooper-zhangtonghao <nic@opencloud.tech>
Signed-off-by: Ben Pfaff <blp@ovn.org>
lib/stp.c

index ecef012878d793daed2d4a751624306f2e62c16c..2ffe5c219f94b7c6218be77ea4e8198ad9e40b6d 100644 (file)
--- a/lib/stp.c
+++ b/lib/stp.c
@@ -302,7 +302,7 @@ stp_create(const char *name, stp_identifier bridge_id,
 
     stp_stop_timer(&stp->tcn_timer);
     stp_stop_timer(&stp->topology_change_timer);
-    stp_start_timer(&stp->hello_timer, 0);
+    stp_start_timer(&stp->hello_timer, stp->hello_time);
 
     stp->send_bpdu = send_bpdu;
     stp->aux = aux;