]> git.puffer.fish Git - matthieu/frr.git/commit
zebra: Limit routemap changes to reconsider only routes associated with that rm
authorDonald Sharp <sharpd@nvidia.com>
Thu, 1 Oct 2020 15:18:45 +0000 (11:18 -0400)
committerDonald Sharp <sharpd@nvidia.com>
Sat, 16 Jan 2021 00:34:33 +0000 (19:34 -0500)
commitcfcd844c0b6fa01bbacf94bd2a18af7bb9e3ea54
treeff5580ae21edf53842d3546b3eaf582ce96bb6b6
parent54aeba3540c19e0126d78ea205fc29c9a7352d0e
zebra: Limit routemap changes to reconsider only routes associated with that rm

Current code when a route map changes schedules a rerun of all routes in the
particular table.  So if you modify the `ip protocol XX route-map FOO`
route-map `FOO` all routes will be rechecked.  This is extremely expensive.

Modify zebra to only update the routes associated with the route-map.  So
if we have 800k bgp routes and 50 ospf routes and we are route-map'ing
the ospf routes we'll only look at 50 routes.

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