diff options
Diffstat (limited to 'src/plugins/lacp/tx_machine.c')
-rw-r--r-- | src/plugins/lacp/tx_machine.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/plugins/lacp/tx_machine.c b/src/plugins/lacp/tx_machine.c index 73ca4862fe8..3377da86422 100644 --- a/src/plugins/lacp/tx_machine.c +++ b/src/plugins/lacp/tx_machine.c @@ -40,8 +40,7 @@ lacp_tx_action_transmit (void *p1, void *p2) { vlib_main_t *vm = p1; slave_if_t *sif = p2; - lacp_main_t *lm = &lacp_main; - f64 now = vlib_time_now (lm->vlib_main); + f64 now = vlib_time_now (vm); if (!lacp_timer_is_running (sif->periodic_timer)) return 0; @@ -53,7 +52,7 @@ lacp_tx_action_transmit (void *p1, void *p2) if (sif->ntt) { lacp_send_lacp_pdu (vm, sif); - lacp_schedule_periodic_timer (lm->vlib_main, sif); + lacp_schedule_periodic_timer (vm, sif); } sif->ntt = 0; |