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