summaryrefslogtreecommitdiff
path: root/bgpd/bgp_labelpool.h
diff options
context:
space:
mode:
authorDonatas Abraitis <donatas.abraitis@gmail.com>2023-05-03 13:50:26 +0300
committerDonatas Abraitis <donatas@opensourcerouting.org>2023-05-03 13:52:46 +0300
commit786e2b8bdb5e06e1d5125855c1a719802f178de1 (patch)
tree7a65648e35bf158574ffa5d189ecb07933419c9a /bgpd/bgp_labelpool.h
parent25664eae52391cc3203e9a6547e96ec0e60fda07 (diff)
Revert "MPLS allocation mode per next hop"
Broken tests, let's revert now. Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
Diffstat (limited to 'bgpd/bgp_labelpool.h')
-rw-r--r--bgpd/bgp_labelpool.h52
1 files changed, 0 insertions, 52 deletions
diff --git a/bgpd/bgp_labelpool.h b/bgpd/bgp_labelpool.h
index b33527186e..9526cba0ce 100644
--- a/bgpd/bgp_labelpool.h
+++ b/bgpd/bgp_labelpool.h
@@ -17,7 +17,6 @@
*/
#define LP_TYPE_VRF 0x00000001
#define LP_TYPE_BGP_LU 0x00000002
-#define LP_TYPE_NEXTHOP 0x00000003
PREDECL_LIST(lp_fifo);
@@ -42,55 +41,4 @@ extern void bgp_lp_event_zebra_down(void);
extern void bgp_lp_event_zebra_up(void);
extern void bgp_lp_vty_init(void);
-struct bgp_label_per_nexthop_cache;
-PREDECL_RBTREE_UNIQ(bgp_label_per_nexthop_cache);
-
-extern int
-bgp_label_per_nexthop_cache_cmp(const struct bgp_label_per_nexthop_cache *a,
- const struct bgp_label_per_nexthop_cache *b);
-
-struct bgp_label_per_nexthop_cache {
-
- /* RB-tree entry. */
- struct bgp_label_per_nexthop_cache_item entry;
-
- /* the nexthop is the key of the list */
- struct prefix nexthop;
-
- /* calculated label */
- mpls_label_t label;
-
- /* number of path_vrfs */
- unsigned int path_count;
-
- /* back pointer to bgp instance */
- struct bgp *to_bgp;
-
- /* copy a nexthop resolution from bgp nexthop tracking
- * used to extract the interface nexthop
- */
- struct nexthop *nh;
-
- /* list of path_vrfs using it */
- LIST_HEAD(path_lists, bgp_path_info) paths;
-
- time_t last_update;
-
- /* Back pointer to the cache tree this entry belongs to. */
- struct bgp_label_per_nexthop_cache_head *tree;
-};
-
-DECLARE_RBTREE_UNIQ(bgp_label_per_nexthop_cache,
- struct bgp_label_per_nexthop_cache, entry,
- bgp_label_per_nexthop_cache_cmp);
-
-void bgp_label_per_nexthop_free(struct bgp_label_per_nexthop_cache *blnc);
-
-struct bgp_label_per_nexthop_cache *
-bgp_label_per_nexthop_new(struct bgp_label_per_nexthop_cache_head *tree,
- struct prefix *nexthop);
-struct bgp_label_per_nexthop_cache *
-bgp_label_per_nexthop_find(struct bgp_label_per_nexthop_cache_head *tree,
- struct prefix *nexthop);
-void bgp_label_per_nexthop_init(void);
#endif /* _FRR_BGP_LABELPOOL_H */