]> 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:24 +0000 (15:06 +0000)
commit410eb0da69214a06350315575ddb332e363b66c6
treeaf8352a7e7deb1793686428e40eb31aae6339fb3
parent14378804db501b6869f33f9e0d6f3a52b15cb50f
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