summaryrefslogtreecommitdiff
path: root/zebra/zebra_mpls.c
diff options
context:
space:
mode:
authorMark Stapp <mjs@voltanet.io>2018-11-26 16:08:55 -0500
committerMark Stapp <mjs@voltanet.io>2019-01-22 15:07:24 -0500
commitfc60837278118e1475d49b5c32a0ae6a528073a5 (patch)
tree4f91658a5ef84cf6016d39a6867a253795140644 /zebra/zebra_mpls.c
parent8a6423a372c082b51792a9b2cd5210041f017a5d (diff)
zebra: openbsd LSP update code
Finish the LSP update code for the async dataplane for the openbsd platform. Remove synch apis now that we've converted to the async code path. Signed-off-by: Mark Stapp <mjs@voltanet.io>
Diffstat (limited to 'zebra/zebra_mpls.c')
-rw-r--r--zebra/zebra_mpls.c39
1 files changed, 0 insertions, 39 deletions
diff --git a/zebra/zebra_mpls.c b/zebra/zebra_mpls.c
index ae60ac2d61..4ea7f32446 100644
--- a/zebra/zebra_mpls.c
+++ b/zebra/zebra_mpls.c
@@ -1736,45 +1736,6 @@ static int mpls_processq_init(struct zebra_t *zebra)
/* Public functions */
-void kernel_lsp_pass_fail(zebra_lsp_t *lsp, enum zebra_dplane_status res)
-{
- struct nexthop *nexthop;
- zebra_nhlfe_t *nhlfe;
-
- if (!lsp)
- return;
-
- switch (res) {
- case ZEBRA_DPLANE_INSTALL_FAILURE:
- UNSET_FLAG(lsp->flags, LSP_FLAG_INSTALLED);
- clear_nhlfe_installed(lsp);
- flog_warn(EC_ZEBRA_LSP_INSTALL_FAILURE,
- "LSP Install Failure: %u", lsp->ile.in_label);
- break;
- case ZEBRA_DPLANE_INSTALL_SUCCESS:
- SET_FLAG(lsp->flags, LSP_FLAG_INSTALLED);
- for (nhlfe = lsp->nhlfe_list; nhlfe; nhlfe = nhlfe->next) {
- nexthop = nhlfe->nexthop;
- if (!nexthop)
- continue;
-
- SET_FLAG(nhlfe->flags, NHLFE_FLAG_INSTALLED);
- SET_FLAG(nexthop->flags, NEXTHOP_FLAG_FIB);
- }
- break;
- case ZEBRA_DPLANE_DELETE_SUCCESS:
- UNSET_FLAG(lsp->flags, LSP_FLAG_INSTALLED);
- clear_nhlfe_installed(lsp);
- break;
- case ZEBRA_DPLANE_DELETE_FAILURE:
- flog_warn(EC_ZEBRA_LSP_DELETE_FAILURE,
- "LSP Deletion Failure: %u", lsp->ile.in_label);
- break;
- case ZEBRA_DPLANE_STATUS_NONE:
- break;
- }
-}
-
/*
* Process LSP update results from zebra dataplane.
*/