forked from Mirror/frr
bfdd: use lower lateness warning for TX timers
FRR's event loop prints a warning if a timer is executed more than some given threshold late, default being 4s. Set a more appropriate threshold for BFD TX timers (half TX interval). Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
This commit is contained in:
parent
ff76fb21d7
commit
5bc4309b61
|
@ -107,6 +107,7 @@ void sbfd_init_xmttimer_update(struct bfd_session *bs, uint64_t jitter)
|
|||
tv_normalize(&tv);
|
||||
|
||||
event_add_timer_tv(master, sbfd_init_xmt_cb, bs, &tv, &bs->xmttimer_ev);
|
||||
event_set_tardy_threshold(bs->xmttimer_ev, bs->xmt_TO / 2);
|
||||
}
|
||||
|
||||
void sbfd_echo_xmttimer_update(struct bfd_session *bs, uint64_t jitter)
|
||||
|
@ -123,6 +124,7 @@ void sbfd_echo_xmttimer_update(struct bfd_session *bs, uint64_t jitter)
|
|||
tv_normalize(&tv);
|
||||
|
||||
event_add_timer_tv(master, sbfd_echo_xmt_cb, bs, &tv, &bs->echo_xmttimer_ev);
|
||||
event_set_tardy_threshold(bs->echo_xmttimer_ev, bs->echo_xmt_TO / 2);
|
||||
}
|
||||
|
||||
void bfd_xmttimer_update(struct bfd_session *bs, uint64_t jitter)
|
||||
|
@ -140,6 +142,7 @@ void bfd_xmttimer_update(struct bfd_session *bs, uint64_t jitter)
|
|||
tv_normalize(&tv);
|
||||
|
||||
event_add_timer_tv(master, bfd_xmt_cb, bs, &tv, &bs->xmttimer_ev);
|
||||
event_set_tardy_threshold(bs->xmttimer_ev, bs->xmt_TO / 2);
|
||||
}
|
||||
|
||||
void bfd_echo_xmttimer_update(struct bfd_session *bs, uint64_t jitter)
|
||||
|
@ -158,6 +161,7 @@ void bfd_echo_xmttimer_update(struct bfd_session *bs, uint64_t jitter)
|
|||
|
||||
event_add_timer_tv(master, bfd_echo_xmt_cb, bs, &tv,
|
||||
&bs->echo_xmttimer_ev);
|
||||
event_set_tardy_threshold(bs->echo_xmttimer_ev, bs->echo_xmt_TO / 2);
|
||||
}
|
||||
|
||||
void bfd_recvtimer_delete(struct bfd_session *bs)
|
||||
|
|
Loading…
Reference in a new issue