From 3448b62542cd61289014b46f064bf3df33c0af0a Mon Sep 17 00:00:00 2001 From: Stephen Worley Date: Tue, 15 Nov 2022 15:28:09 -0500 Subject: [PATCH] bgpd: debug guard inQ limit Add a debug guard for the inQ limit. Signed-off-by: Stephen Worley --- bgpd/bgp_io.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/bgpd/bgp_io.c b/bgpd/bgp_io.c index ce8ce96a0d..49ae9816a3 100644 --- a/bgpd/bgp_io.c +++ b/bgpd/bgp_io.c @@ -280,10 +280,11 @@ static void bgp_process_reads(struct thread *thread) case -ENOMEM: ibuf_full = true; if (!ibuf_full_logged) { - flog_warn( - EC_BGP_UPDATE_RCV, - "%s [Warning] Peer Input-Queue is full: limit (%u)", - peer->host, bm->inq_limit); + if (bgp_debug_neighbor_events(peer)) + zlog_debug( + "%s [Event] Peer Input-Queue is full: limit (%u)", + peer->host, bm->inq_limit); + ibuf_full_logged = true; } break; -- 2.39.5