mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-07 09:22:03 +00:00
bgpd: No need to test if a thread is running for BGP_TIMER_OFF
Handles that inside the macro. Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
This commit is contained in:
parent
20044d8090
commit
22472feef8
@ -509,7 +509,6 @@ static int bgp_connect_timer(struct thread *thread)
|
|||||||
peer = THREAD_ARG(thread);
|
peer = THREAD_ARG(thread);
|
||||||
|
|
||||||
/* stop the DelayOpenTimer if it is running */
|
/* stop the DelayOpenTimer if it is running */
|
||||||
if (peer->t_delayopen)
|
|
||||||
BGP_TIMER_OFF(peer->t_delayopen);
|
BGP_TIMER_OFF(peer->t_delayopen);
|
||||||
|
|
||||||
assert(!peer->t_write);
|
assert(!peer->t_write);
|
||||||
@ -830,7 +829,6 @@ void bgp_adjust_routeadv(struct peer *peer)
|
|||||||
* different
|
* different
|
||||||
* duration and schedule write thread immediately.
|
* duration and schedule write thread immediately.
|
||||||
*/
|
*/
|
||||||
if (peer->t_routeadv)
|
|
||||||
BGP_TIMER_OFF(peer->t_routeadv);
|
BGP_TIMER_OFF(peer->t_routeadv);
|
||||||
|
|
||||||
peer->synctime = bgp_clock();
|
peer->synctime = bgp_clock();
|
||||||
|
@ -7876,7 +7876,6 @@ void bgp_terminate(void)
|
|||||||
bgp_notify_send(peer, BGP_NOTIFY_CEASE,
|
bgp_notify_send(peer, BGP_NOTIFY_CEASE,
|
||||||
BGP_NOTIFY_CEASE_PEER_UNCONFIG);
|
BGP_NOTIFY_CEASE_PEER_UNCONFIG);
|
||||||
|
|
||||||
if (bm->t_rmap_update)
|
|
||||||
BGP_TIMER_OFF(bm->t_rmap_update);
|
BGP_TIMER_OFF(bm->t_rmap_update);
|
||||||
|
|
||||||
bgp_mac_finish();
|
bgp_mac_finish();
|
||||||
|
Loading…
Reference in New Issue
Block a user