]> git.puffer.fish Git - mirror/frr.git/commit
bgpd: Reduce # of iterations when doing llgr 16758/head
authorDonald Sharp <sharpd@nvidia.com>
Fri, 6 Sep 2024 14:39:41 +0000 (10:39 -0400)
committerDonald Sharp <sharpd@nvidia.com>
Fri, 6 Sep 2024 14:39:41 +0000 (10:39 -0400)
commitbb78f73fa624bb5c2ee8612124ae51af6f6dc91c
treea2ff17c93f87098a5e245647a4b961a2ea2a21ef
parentf3f96f95bd836c438dd549327baed334ba8d44fe
bgpd: Reduce # of iterations when doing llgr

Code was scanning a table then identifying a prefix
that needed to be modified then calling code that
reran bestpath on the entire table again.

If you had multiple items that needed processing
you would end up scanning and setting the entire
table to be scanned multiple times.  No bueno.

a) We do not need to reprocess items that are not
being modified.

b) We do not need to walk the entire table multiple
times, we have the data that is needed already.

Modify the code to just call bgp_process on the
interesting nodes.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
bgpd/bgp_fsm.c