diff options
| author | Stephen Worley <sworley@cumulusnetworks.com> | 2020-10-02 17:25:36 -0400 |
|---|---|---|
| committer | Stephen Worley <sworley@cumulusnetworks.com> | 2020-10-02 17:25:36 -0400 |
| commit | 7403e155610d4680d174b99b79780eded340d0ff (patch) | |
| tree | 50cc827c1e1548c4ffa28f7f385932fa44528069 /lib/nexthop_group.c | |
| parent | 3a1d1d6076897b2bb7afae96b4191c14888447f8 (diff) | |
lib: remove nexthop_same_firsthop() api
Remove the nexthop_same_firsthop() api and just call nexthop_same().
Not entirely sure why we were using this function in the first place,
but now we are just marking dupes with it so lets just call a
common function and avoid issues.
Signed-off-by: Stephen Worley <sworley@cumulusnetworks.com>
Diffstat (limited to 'lib/nexthop_group.c')
| -rw-r--r-- | lib/nexthop_group.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/nexthop_group.c b/lib/nexthop_group.c index 83905abe43..4afb1d642a 100644 --- a/lib/nexthop_group.c +++ b/lib/nexthop_group.c @@ -481,7 +481,7 @@ void nexthop_group_mark_duplicates(struct nexthop_group *nhg) for (ALL_NEXTHOPS_PTR(nhg, prev)) { if (prev == nexthop) break; - if (nexthop_same_firsthop(nexthop, prev)) { + if (nexthop_same(nexthop, prev)) { SET_FLAG(nexthop->flags, NEXTHOP_FLAG_DUPLICATE); break; |
