]> git.puffer.fish Git - matthieu/frr.git/commit
bgpd: add the bgp_label_per_nexthop_cache struct and apis
authorPhilippe Guibert <philippe.guibert@6wind.com>
Tue, 28 Feb 2023 13:17:17 +0000 (14:17 +0100)
committerPhilippe Guibert <philippe.guibert@6wind.com>
Tue, 9 May 2023 19:00:57 +0000 (21:00 +0200)
commit546d58702e2836743b25ed416f6b089009056d2e
treed8e4e3b724d39c779e11a4e21611b8cd02e676da
parent855dcbf15898ce6b40bdf31902970d65ac801f56
bgpd: add the bgp_label_per_nexthop_cache struct and apis

This commit introduces the necessary structs and apis to
create the cache entries that store the label information
associated to a given nexthop.

A hash table is created in each BGP instance for all the
AFIs: IPv4 and IPv6. That hash table is initialised.
An API to look and/or create an entry based on a given
nexthop.

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
bgpd/bgp_labelpool.c
bgpd/bgp_labelpool.h
bgpd/bgpd.c
bgpd/bgpd.h