diff mbox

[ovs-dev,4/4] stp: Don't wait a hello-time before sending BPDU.

Message ID 1488892290-106534-4-git-send-email-nic@opencloud.tech
State Accepted
Headers show

Commit Message

nickcooper-zhangtonghao March 7, 2017, 1:11 p.m. UTC
Signed-off-by: nickcooper-zhangtonghao <nic@opencloud.tech>
---
 lib/stp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Ben Pfaff March 17, 2017, 7:38 p.m. UTC | #1
On Tue, Mar 07, 2017 at 05:11:30AM -0800, nickcooper-zhangtonghao wrote:
> Signed-off-by: nickcooper-zhangtonghao <nic@opencloud.tech>

Thanks, applied to master, branch-2.7, and branch-2.6.
diff mbox

Patch

diff --git a/lib/stp.c b/lib/stp.c
index d90b400..d828c64 100644
--- a/lib/stp.c
+++ b/lib/stp.c
@@ -306,7 +306,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;