summaryrefslogtreecommitdiffstats
path: root/bgpd/bgp_updgrp_adv.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@nvidia.com>2020-11-14 01:35:20 +0100
committerDonald Sharp <sharpd@nvidia.com>2020-11-14 01:35:20 +0100
commit1782514fb957d86c0e2510f2e76651345c5c9fb1 (patch)
treed4282946603ca67c78ee17ff03aa7cf890e577bd /bgpd/bgp_updgrp_adv.c
parentMerge pull request #7474 from eololab/fix-crash-skiplist-debug (diff)
downloadfrr-1782514fb957d86c0e2510f2e76651345c5c9fb1.tar.xz
frr-1782514fb957d86c0e2510f2e76651345c5c9fb1.zip
*: Remove route_map_object_t from the system
The route_map_object_t was being used to track what protocol we were being called against. But each protocol was only ever calling itself. So we had a variable that was only ever being passed in from route_map_apply that had to be carried against and everyone was testing if that variable was for their own stack. Clean up this route_map_object_t from the entire system. We should speed some stuff up. Yes I know not a bunch but this will add up. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'bgpd/bgp_updgrp_adv.c')
-rw-r--r--bgpd/bgp_updgrp_adv.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/bgpd/bgp_updgrp_adv.c b/bgpd/bgp_updgrp_adv.c
index a03232466..a44b55198 100644
--- a/bgpd/bgp_updgrp_adv.c
+++ b/bgpd/bgp_updgrp_adv.c
@@ -823,8 +823,7 @@ void subgroup_default_originate(struct update_subgroup *subgrp, int withdraw)
ret = route_map_apply(
peer->default_rmap[afi][safi].map,
- bgp_dest_get_prefix(dest), RMAP_BGP,
- &tmp_pi);
+ bgp_dest_get_prefix(dest), &tmp_pi);
if (ret == RMAP_DENYMATCH) {
bgp_attr_flush(&tmp_attr);