diff options
| author | varuntumbe <varuntumbe1@gmail.com> | 2024-12-12 17:57:02 +0530 |
|---|---|---|
| committer | varuntumbe <varuntumbe1@gmail.com> | 2024-12-16 21:27:46 +0530 |
| commit | d5c2f2df199819bc7497db5a5d69a569eaccc1f9 (patch) | |
| tree | 9e63ced855fc163ab3d6ed19b63f737b9efbcbf7 /bgpd/bgp_mplsvpn.h | |
| parent | c8e624bfd5bda89545fca853540d4f2fc7e25d83 (diff) | |
bgpd: Releasing the label in bgp_delete flow
Releasing the vpn label from label pool chunk using bgp_lp_release routine whenever vpn session is removed.
bgp_lp_release will clear corresponding bit in the allocated map of the label pool chunk and increases nfree by 1
Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
Diffstat (limited to 'bgpd/bgp_mplsvpn.h')
| -rw-r--r-- | bgpd/bgp_mplsvpn.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/bgpd/bgp_mplsvpn.h b/bgpd/bgp_mplsvpn.h index 39fed66781..18639fc69b 100644 --- a/bgpd/bgp_mplsvpn.h +++ b/bgpd/bgp_mplsvpn.h @@ -352,6 +352,7 @@ extern void vpn_handle_router_id_update(struct bgp *bgp, bool withdraw, bool is_config); extern void bgp_vpn_leak_unimport(struct bgp *from_bgp); extern void bgp_vpn_leak_export(struct bgp *from_bgp); +extern void bgp_vpn_release_label(struct bgp *bgp, afi_t afi, bool reset); extern bool bgp_mplsvpn_path_uses_valid_mpls_label(struct bgp_path_info *pi); extern int |
