summaryrefslogtreecommitdiffstats
path: root/bgpd/bgp_io.c
diff options
context:
space:
mode:
authorQuentin Young <qlyoung@nvidia.com>2020-10-08 22:54:37 +0200
committerQuentin Young <qlyoung@nvidia.com>2020-10-23 21:13:51 +0200
commit0c3436aa224b8e65043d36902eabf0b58aaf2a40 (patch)
tree536fbc2a78a4927a9fc21e3a8abcd70d88e07ad2 /bgpd/bgp_io.c
parentdoc: add developer docs for tracing (diff)
downloadfrr-0c3436aa224b8e65043d36902eabf0b58aaf2a40.tar.xz
frr-0c3436aa224b8e65043d36902eabf0b58aaf2a40.zip
bgpd: move packet read tracepoint out of mutex
Signed-off-by: Quentin Young <qlyoung@nvidia.com>
Diffstat (limited to 'bgpd/bgp_io.c')
-rw-r--r--bgpd/bgp_io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bgpd/bgp_io.c b/bgpd/bgp_io.c
index 0997fdba9..8f898c312 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);
}