From cc1b97466800165cc2df506b34414c757a7c646d Mon Sep 17 00:00:00 2001 From: Mark Stapp Date: Tue, 2 Jun 2020 16:16:21 -0400 Subject: zebra: collapse some duplicate LSP nhlfe apis Collapse some apis where primary and backup nhlfe code was very similar, generally using a single common api and using a bool to distinguish between primary and backup. Signed-off-by: Mark Stapp --- zebra/zebra_mpls.h | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'zebra/zebra_mpls.h') diff --git a/zebra/zebra_mpls.h b/zebra/zebra_mpls.h index 53429ee99..07a8efeb8 100644 --- a/zebra/zebra_mpls.h +++ b/zebra/zebra_mpls.h @@ -331,7 +331,8 @@ int mpls_lsp_install(struct zebra_vrf *zvrf, enum lsp_types_t type, */ int mpls_lsp_uninstall(struct zebra_vrf *zvrf, enum lsp_types_t type, mpls_label_t in_label, enum nexthop_types_t gtype, - const union g_addr *gate, ifindex_t ifindex); + const union g_addr *gate, ifindex_t ifindex, + bool backup_p); /* * Uninstall all NHLFEs for a particular LSP forwarding entry. @@ -339,12 +340,6 @@ int mpls_lsp_uninstall(struct zebra_vrf *zvrf, enum lsp_types_t type, int mpls_lsp_uninstall_all_vrf(struct zebra_vrf *zvrf, enum lsp_types_t type, mpls_label_t in_label); -/* - * Uninstall all Segment Routing NHLFEs for a particular LSP forwarding entry. - * If no other NHLFEs exist, the entry would be deleted. - */ -void mpls_sr_lsp_uninstall_all(struct hash_bucket *bucket, void *ctxt); - #if defined(HAVE_CUMULUS) /* * Check that the label values used in LSP creation are consistent. The -- cgit v1.2.3