Merge pull request #12324 from sworleys/Guard-InQ-Log

bgpd: debug guard inQ limit
This commit is contained in:
Donatas Abraitis 2022-11-16 21:48:04 +02:00 committed by GitHub
commit e0f7fc58a2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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;