]> git.proxmox.com Git - mirror_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>
Wed, 22 Mar 2023 11:06:29 +0000 (12:06 +0100)
commit4a3243116be562b5eb083b3effd62b72f29ed87a
tree520e98937a6e1c44467a24b0c211a45de45cf0c8
parentbb3b811305ffc3c0998438b48a003c815c859293
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