]> git.proxmox.com Git - mirror_frr.git/blobdiff - bgpd/bgp_labelpool.h
Merge pull request #13649 from donaldsharp/unlock_the_node_or_else
[mirror_frr.git] / bgpd / bgp_labelpool.h
index c26d9cd8cf03ca63aa2a781fdf5ca9f41e93a3fe..b33527186e0a10b876494ec4a9db104a48352c36 100644 (file)
@@ -32,7 +32,7 @@ struct labelpool {
        uint32_t next_chunksize;                /* request this many labels */
 };
 
-extern void bgp_lp_init(struct thread_master *master, struct labelpool *pool);
+extern void bgp_lp_init(struct event_loop *master, struct labelpool *pool);
 extern void bgp_lp_finish(void);
 extern void bgp_lp_get(int type, void *labelid,
        int (*cbfunc)(mpls_label_t label, void *labelid, bool allocated));
@@ -74,6 +74,8 @@ struct bgp_label_per_nexthop_cache {
        /* 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;
 };
@@ -90,4 +92,5 @@ bgp_label_per_nexthop_new(struct bgp_label_per_nexthop_cache_head *tree,
 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 */