diff options
| author | Stephen Worley <sworley@cumulusnetworks.com> | 2019-08-07 13:47:34 -0400 |
|---|---|---|
| committer | Stephen Worley <sworley@cumulusnetworks.com> | 2019-10-25 11:13:42 -0400 |
| commit | 986a6617cc9425dfa4f9fcc879a4d98a3ab00b7c (patch) | |
| tree | 44772a96baabf35324c016c3b700a9d366a51a64 /lib/nexthop.h | |
| parent | 2001be6cc0926bfb5c38d64b74399beff13e00b2 (diff) | |
zebra: Optimize the fib/notified nexthop matching
Optimize the fib and notified nexthop group comparison algorithm
to assume ordering. There were some pretty serious performance hits with
this on high ecmp routes.
Signed-off-by: Stephen Worley <sworley@cumulusnetworks.com>
Diffstat (limited to 'lib/nexthop.h')
| -rw-r--r-- | lib/nexthop.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/nexthop.h b/lib/nexthop.h index 5558e857f6..dfb30a1bce 100644 --- a/lib/nexthop.h +++ b/lib/nexthop.h @@ -154,7 +154,7 @@ extern int nexthop_same_firsthop(struct nexthop *next1, struct nexthop *next2); extern const char *nexthop2str(const struct nexthop *nexthop, char *str, int size); extern struct nexthop *nexthop_next(struct nexthop *nexthop); -extern struct nexthop *nexthop_recursive_next(struct nexthop *nexthop); +extern struct nexthop *nexthop_next_active_resolved(struct nexthop *nexthop); extern unsigned int nexthop_level(struct nexthop *nexthop); /* Copies to an already allocated nexthop struct */ extern void nexthop_copy(struct nexthop *copy, const struct nexthop *nexthop, |
