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.h | |
| 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.h')
| -rw-r--r-- | lib/nexthop.h | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/lib/nexthop.h b/lib/nexthop.h index cadcea1f41..f1ad195cf4 100644 --- a/lib/nexthop.h +++ b/lib/nexthop.h @@ -55,12 +55,6 @@ enum blackhole_type { BLACKHOLE_ADMINPROHIB, }; -/* IPV[46] -> IPV[46]_IFINDEX */ -#define NEXTHOP_FIRSTHOPTYPE(type) \ - ((type) == NEXTHOP_TYPE_IFINDEX || (type) == NEXTHOP_TYPE_BLACKHOLE) \ - ? (type) \ - : ((type) | 1) - enum nh_encap_type { NET_VXLAN = 100, /* value copied from FPM_NH_ENCAP_VXLAN. */ }; @@ -216,8 +210,6 @@ extern int nexthop_g_addr_cmp(enum nexthop_types_t type, extern const char *nexthop_type_to_str(enum nexthop_types_t nh_type); extern bool nexthop_labels_match(const struct nexthop *nh1, const struct nexthop *nh2); -extern bool nexthop_same_firsthop(const struct nexthop *next1, - const struct nexthop *next2); extern const char *nexthop2str(const struct nexthop *nexthop, char *str, int size); |
