]> 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)
committerDonatas Abraitis <donatas@opensourcerouting.org>
Fri, 20 Dec 2024 21:09:32 +0000 (23:09 +0200)
commit5b51fbda0cf7a1085c2b8629551753247bb71a51
tree14d0da253be4e122a65faf76bb55c552dfc65ee5
parent80f5df3f09a19c4a8f52b43c55fe9885b9ce42a1
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>
bgpd/bgp_rpki.c
bgpd/bgpd.c
bgpd/bgpd.h