summaryrefslogtreecommitdiff
path: root/zebra/redistribute.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@nvidia.com>2023-08-11 11:15:06 -0400
committerDonald Sharp <sharpd@nvidia.com>2023-08-11 11:15:06 -0400
commitb7542d5af889e039ef19e1fd00d0116396659688 (patch)
tree9ef04e736edeb2e4bce6617a6f92bf55efd64ee2 /zebra/redistribute.c
parentcad4d0c3327d6985446c949bc087a277ce9bb930 (diff)
zebra: Remove instance from zebra_rmap_obj data structure
In all cases the instance is derived from the re pointer and since the re pointer is already stored, let's just remove it from the game and cut to the chase. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'zebra/redistribute.c')
-rw-r--r--zebra/redistribute.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/zebra/redistribute.c b/zebra/redistribute.c
index c87da5ed6c..9e73e6a2fd 100644
--- a/zebra/redistribute.c
+++ b/zebra/redistribute.c
@@ -647,8 +647,7 @@ int zebra_add_import_table_entry(struct zebra_vrf *zvrf, struct route_node *rn,
afi = family2afi(rn->p.family);
if (rmap_name)
- ret = zebra_import_table_route_map_check(afi, re, re->instance,
- &rn->p,
+ ret = zebra_import_table_route_map_check(afi, re, &rn->p,
re->nhe->nhg.nexthop,
re->tag, rmap_name);