From dd4889e21cb15df541cf3b2c2d8bb971ce460359 Mon Sep 17 00:00:00 2001 From: Steven Date: Thu, 29 Mar 2018 10:35:41 -0700 Subject: lacp: faster convergence for slow-rate config option Do fast-rate if we are not yet synchronized with the partner. Stop sending LACP updates as a flash in the worker thread. Just expire the timer and let the lacp_process handle sending LACP PDU. Change-Id: I8b36fe74e752e7f45bd4a8d70512c0341cc197a1 Signed-off-by: Steven --- src/plugins/lacp/lacp.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'src/plugins/lacp/lacp.c') diff --git a/src/plugins/lacp/lacp.c b/src/plugins/lacp/lacp.c index 5fe505a4f0f..378d22be931 100644 --- a/src/plugins/lacp/lacp.c +++ b/src/plugins/lacp/lacp.c @@ -89,7 +89,7 @@ lacp_send_ethernet_lacp_pdu (slave_if_t * sif) vlib_put_frame_to_node (vm, hw->output_node_index, f); - sif->last_lacpdu_time = vlib_time_now (vm); + sif->last_lacpdu_time = vlib_time_now (lm->vlib_main); } /* @@ -106,8 +106,6 @@ lacp_pick_packet_template (slave_if_t * sif) void lacp_send_lacp_pdu (vlib_main_t * vm, slave_if_t * sif) { - lacp_main_t *lm = &lacp_main; - if (sif->mode != BOND_MODE_LACP) { lacp_stop_timer (&sif->periodic_timer); @@ -133,10 +131,6 @@ lacp_send_lacp_pdu (vlib_main_t * vm, slave_if_t * sif) default: ASSERT (0); } - - lacp_start_periodic_timer (lm->vlib_main, sif, sif->is_long_timeout ? - LACP_SLOW_PERIODIC_TIMER : - LACP_FAST_PERIODIC_TIMER); } void -- cgit 1.2.3-korg