summaryrefslogtreecommitdiffstats
path: root/bgpd/bgp_packet.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_packet.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 '')
-rw-r--r--bgpd/bgp_packet.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bgpd/bgp_packet.c b/bgpd/bgp_packet.c
index f04b89594..e08f19fb4 100644
--- a/bgpd/bgp_packet.c
+++ b/bgpd/bgp_packet.c
@@ -2680,7 +2680,7 @@ int bgp_process_packet(struct thread *thread)
frr_with_mutex(&peer->io_mtx) {
// more work to do, come back later
if (peer->ibuf->count > 0)
- thread_add_timer_msec(
+ thread_add_event(
bm->master, bgp_process_packet, peer, 0,
&peer->t_process_packet);
}