]> git.proxmox.com Git - mirror_frr.git/commit
bgpd: only unimport routes if tunnel-ip changes
authorTrey Aspelund <taspelund@nvidia.com>
Wed, 25 Jan 2023 18:07:43 +0000 (13:07 -0500)
committerTrey Aspelund <taspelund@nvidia.com>
Fri, 27 Jan 2023 16:11:44 +0000 (11:11 -0500)
commit826c3f6db358e9bbc48848c5eadaab7916f5c3f9
tree44a84dc46bb249727abf87045366f15e2d84a1eb
parent2d5928355c89130713660493e23430994b79a8ef
bgpd: only unimport routes if tunnel-ip changes

When processing a new local VNI, we were always walking the global EVPN
table to look for routes that needed to be removed due to a martian
nexthop change (specifically a tunnel-ip change).
Since the martian TIP table is global (all VNIs) + the walk is also in
the global table (all VNIs), we can trust that any new TIP from any VNI
would result in routes getting removed from the global table and
unimported from all live (L2)VNIs.
i.e.
The only time this update is actionable is if we are adding/removing an
IP from the martian TIP table, and we do not need to walk the table for
normal refcount adjustments.

Signed-off-by: Trey Aspelund <taspelund@nvidia.com>
bgpd/bgp_evpn.c
bgpd/bgp_nexthop.c
bgpd/bgp_nexthop.h