bgpd: debug guard inQ limit

Add a debug guard for the inQ limit.

Signed-off-by: Stephen Worley <sworley@nvidia.com>
This commit is contained in:
Stephen Worley 2022-11-15 15:28:09 -05:00
parent 1ee3556e5f
commit 3448b62542

View File

@ -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;