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: case -ENOMEM:
ibuf_full = true; ibuf_full = true;
if (!ibuf_full_logged) { if (!ibuf_full_logged) {
flog_warn( if (bgp_debug_neighbor_events(peer))
EC_BGP_UPDATE_RCV, zlog_debug(
"%s [Warning] Peer Input-Queue is full: limit (%u)", "%s [Event] Peer Input-Queue is full: limit (%u)",
peer->host, bm->inq_limit); peer->host, bm->inq_limit);
ibuf_full_logged = true; ibuf_full_logged = true;
} }
break; break;