From 0c3436aa224b8e65043d36902eabf0b58aaf2a40 Mon Sep 17 00:00:00 2001 From: Quentin Young Date: Thu, 8 Oct 2020 16:54:37 -0400 Subject: [PATCH] bgpd: move packet read tracepoint out of mutex Signed-off-by: Quentin Young --- bgpd/bgp_io.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bgpd/bgp_io.c b/bgpd/bgp_io.c index 0997fdba97..8f898c3121 100644 --- a/bgpd/bgp_io.c +++ b/bgpd/bgp_io.c @@ -235,8 +235,8 @@ static int bgp_process_reads(struct thread *thread) assert(ringbuf_get(ibw, pkt->data, pktsize) == pktsize); stream_set_endp(pkt, pktsize); + frrtrace(2, frr_bgp, packet_read, peer, pkt); frr_with_mutex(&peer->io_mtx) { - frrtrace(2, frr_bgp, packet_read, peer, pkt); stream_fifo_push(peer->ibuf, pkt); } -- 2.39.5