summaryrefslogtreecommitdiffstats
path: root/zebra/zebra_mpls_netlink.c
diff options
context:
space:
mode:
authorMark Stapp <mjs@voltanet.io>2018-12-10 20:34:24 +0100
committerMark Stapp <mjs@voltanet.io>2019-01-25 16:45:57 +0100
commit97d8d05a811eac7b3f39c64f7806f5b9c5bc2004 (patch)
treeabf584cc2e151165591c3bc14d52a4cecc2eb43d /zebra/zebra_mpls_netlink.c
parentzebra: start pseudowire support (diff)
downloadfrr-97d8d05a811eac7b3f39c64f7806f5b9c5bc2004.tar.xz
frr-97d8d05a811eac7b3f39c64f7806f5b9c5bc2004.zip
zebra: convert PW updates to async dataplane
Add accessors for pw attributes; init pw attributes; replace 'hook' calls for pw install/uninstall with dplane apis. Signed-off-by: Mark Stapp <mjs@voltanet.io>
Diffstat (limited to 'zebra/zebra_mpls_netlink.c')
-rw-r--r--zebra/zebra_mpls_netlink.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/zebra/zebra_mpls_netlink.c b/zebra/zebra_mpls_netlink.c
index d8b5ef4ce..a9233530d 100644
--- a/zebra/zebra_mpls_netlink.c
+++ b/zebra/zebra_mpls_netlink.c
@@ -61,6 +61,16 @@ done:
ZEBRA_DPLANE_REQUEST_SUCCESS : ZEBRA_DPLANE_REQUEST_FAILURE);
}
+/*
+ * Pseudowire update api - not supported by netlink as of 12/18,
+ * but note that the default has been to report 'success' for pw updates
+ * on unsupported platforms.
+ */
+enum zebra_dplane_result kernel_pw_update(struct zebra_dplane_ctx *ctx)
+{
+ return ZEBRA_DPLANE_REQUEST_SUCCESS;
+}
+
int mpls_kernel_init(void)
{
struct stat st;