]> git.puffer.fish Git - mirror/frr.git/commit
bgpd: Validate only affected RPKI prefixes instead of a full RIB 17586/head
authorDonatas Abraitis <donatas@opensourcerouting.org>
Wed, 4 Dec 2024 21:38:34 +0000 (23:38 +0200)
committerDonatas Abraitis <donatas@opensourcerouting.org>
Fri, 6 Dec 2024 21:31:33 +0000 (23:31 +0200)
commitb0800bfdf04b4fcf48504737ebfe4ba7f05268d3
treeea3fd0234f3915661cdcaa0e8cdd73726b751cdf
parent6bf42834218d2f89959c998c0d6ce6ab9b722557
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