]> git.puffer.fish Git - matthieu/frr.git/commit
bgpd: Validate only affected RPKI prefixes instead of a full RIB
authorDonatas Abraitis <donatas@opensourcerouting.org>
Wed, 4 Dec 2024 21:38:34 +0000 (23:38 +0200)
committerMergify <37929162+mergify[bot]@users.noreply.github.com>
Fri, 20 Dec 2024 15:06:35 +0000 (15:06 +0000)
commit14c714861ef46beda8d86864c4b953d0a2bde499
tree497d90006a08c2b7783a6632ad0b186f66f76511
parentd4db7054704b3fd8276611894677ed34ae021157
bgpd: Validate only affected RPKI prefixes instead of a full RIB

Before this fix, if rpki_sync_socket_rtr socket returns EAGAIN, then ALL routes
in the RIB are revalidated which takes lots of CPU and some unnecessary traffic,
e.g. if using BMP servers. With a full feed it would waste 50-80Mbps.

Instead we should try to drain an existing pipe (another end), and revalidate
only affected prefixes.

Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
(cherry picked from commit b0800bfdf04b4fcf48504737ebfe4ba7f05268d3)
bgpd/bgp_rpki.c
bgpd/bgpd.c
bgpd/bgpd.h