summaryrefslogtreecommitdiffstats
path: root/lib/nexthop_group.h
diff options
context:
space:
mode:
authorStephen Worley <sworley@cumulusnetworks.com>2019-08-07 17:33:01 +0200
committerStephen Worley <sworley@cumulusnetworks.com>2019-10-25 17:13:42 +0200
commit9ef49038d59e388a442c265d03d27c4d5e9c7e27 (patch)
treebca6b676140e31966eb50af4dc22bc402c001939 /lib/nexthop_group.h
parentlib: Call nexthop g_addr hashes together (diff)
downloadfrr-9ef49038d59e388a442c265d03d27c4d5e9c7e27.tar.xz
frr-9ef49038d59e388a442c265d03d27c4d5e9c7e27.zip
lib,zebra: Move nexthop dup marking into creation
We were waiting until install time to mark nexthops as duplicate. Since they are immutable now and re-used, move this marking into when they are actually created to save a bunch of cycles. Signed-off-by: Stephen Worley <sworley@cumulusnetworks.com>
Diffstat (limited to 'lib/nexthop_group.h')
-rw-r--r--lib/nexthop_group.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/nexthop_group.h b/lib/nexthop_group.h
index a765b4b76..291a259f9 100644
--- a/lib/nexthop_group.h
+++ b/lib/nexthop_group.h
@@ -50,6 +50,7 @@ void copy_nexthops(struct nexthop **tnh, const struct nexthop *nh,
uint32_t nexthop_group_hash_no_recurse(const struct nexthop_group *nhg);
uint32_t nexthop_group_hash(const struct nexthop_group *nhg);
+void nexthop_group_mark_duplicates(struct nexthop_group *nhg);
/* The following for loop allows to iterate over the nexthop
* structure of routes.