diff options
| author | Stephen Worley <sworley@cumulusnetworks.com> | 2019-08-07 11:33:01 -0400 | 
|---|---|---|
| committer | Stephen Worley <sworley@cumulusnetworks.com> | 2019-10-25 11:13:42 -0400 | 
| commit | 9ef49038d59e388a442c265d03d27c4d5e9c7e27 (patch) | |
| tree | bca6b676140e31966eb50af4dc22bc402c001939 /lib/nexthop_group.h | |
| parent | a15e669ceb0c9adde7ca2370aae7168a0b6548bc (diff) | |
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.h | 1 | 
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/nexthop_group.h b/lib/nexthop_group.h index a765b4b76b..291a259f93 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.  | 
