diff options
author | Mark Stapp <mjs@voltanet.io> | 2020-10-24 22:50:35 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-24 22:50:35 +0200 |
commit | cbd492990db19b51a24bdd6e8bfec4f79c0f11d5 (patch) | |
tree | 660d4e662cd49d32b968e2b00cb18e1928c49f90 /bgpd/bgp_io.c | |
parent | Merge pull request #7374 from sworleys/Revert-Revert-NHG-Dependents (diff) | |
parent | bgpd: clean up trace header style a bit (diff) | |
download | frr-cbd492990db19b51a24bdd6e8bfec4f79c0f11d5.tar.xz frr-cbd492990db19b51a24bdd6e8bfec4f79c0f11d5.zip |
Merge pull request #7194 from qlyoung/tracing
Tracing
Diffstat (limited to 'bgpd/bgp_io.c')
-rw-r--r-- | bgpd/bgp_io.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/bgpd/bgp_io.c b/bgpd/bgp_io.c index b14ac8b78..38455b5e0 100644 --- a/bgpd/bgp_io.c +++ b/bgpd/bgp_io.c @@ -39,6 +39,7 @@ #include "bgpd/bgp_errors.h" // for expanded error reference information #include "bgpd/bgp_fsm.h" // for BGP_EVENT_ADD, bgp_event #include "bgpd/bgp_packet.h" // for bgp_notify_send_with_data, bgp_notify... +#include "bgpd/bgp_trace.h" // for frrtraces #include "bgpd/bgpd.h" // for peer, BGP_MARKER_SIZE, bgp_master, bm /* clang-format on */ @@ -234,6 +235,7 @@ 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) { stream_fifo_push(peer->ibuf, pkt); } |