summaryrefslogtreecommitdiffstats
path: root/bgpd/bgp_io.c
diff options
context:
space:
mode:
authorMark Stapp <mjs@voltanet.io>2021-03-17 21:10:13 +0100
committerMark Stapp <mjs@voltanet.io>2021-03-17 21:10:13 +0100
commite0d550dfea0ff72a2192e4193f3d67af5748859c (patch)
treeedba12cb5e31b5d428b29b1abd25f6bec4008644 /bgpd/bgp_io.c
parentMerge pull request #8232 from reubendowle/fixes/nhrp-ipsec-issues (diff)
downloadfrr-e0d550dfea0ff72a2192e4193f3d67af5748859c.tar.xz
frr-e0d550dfea0ff72a2192e4193f3d67af5748859c.zip
bgpd: use add_event instead of add_timer with zero timeout
Just use events in a few places where timers with zero timeout were being used. Signed-off-by: Mark Stapp <mjs@voltanet.io>
Diffstat (limited to 'bgpd/bgp_io.c')
-rw-r--r--bgpd/bgp_io.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bgpd/bgp_io.c b/bgpd/bgp_io.c
index 7aa489e93..a696d9569 100644
--- a/bgpd/bgp_io.c
+++ b/bgpd/bgp_io.c
@@ -268,8 +268,8 @@ static int bgp_process_reads(struct thread *thread)
thread_add_read(fpt->master, bgp_process_reads, peer, peer->fd,
&peer->t_read);
if (added_pkt)
- thread_add_timer_msec(bm->master, bgp_process_packet,
- peer, 0, &peer->t_process_packet);
+ thread_add_event(bm->master, bgp_process_packet,
+ peer, 0, &peer->t_process_packet);
}
return 0;