aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/nat/dslite_ce_encap.c
diff options
context:
space:
mode:
authorFilip Varga <fivarga@cisco.com>2019-02-13 01:42:59 -0800
committerDamjan Marion <dmarion@me.com>2019-02-18 16:46:50 +0000
commite69e423743630b52e13db58c3f0229df8a46c07f (patch)
tree5471b64b7fe38031f47791c987f9791fc8207fa7 /src/plugins/nat/dslite_ce_encap.c
parent7dcb80a202f1ce075434a17ace3334a7a311e84e (diff)
NAT: VPP-1552 code migration from old multiarch scheme
Change-Id: I88f3df8aaa521e7707ef3335acdbf1ab41e7ee28 Signed-off-by: Filip Varga <fivarga@cisco.com>
Diffstat (limited to 'src/plugins/nat/dslite_ce_encap.c')
-rw-r--r--src/plugins/nat/dslite_ce_encap.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/src/plugins/nat/dslite_ce_encap.c b/src/plugins/nat/dslite_ce_encap.c
index d83ca9c8046..39ff7975c3a 100644
--- a/src/plugins/nat/dslite_ce_encap.c
+++ b/src/plugins/nat/dslite_ce_encap.c
@@ -15,8 +15,6 @@
#include <nat/dslite.h>
#include <nat/nat_inlines.h>
-vlib_node_registration_t dslite_ce_encap_node;
-
typedef enum
{
DSLITE_CE_ENCAP_NEXT_IP6_LOOKUP,
@@ -30,9 +28,9 @@ static char *dslite_ce_encap_error_strings[] = {
#undef _
};
-static uword
-dslite_ce_encap_node_fn (vlib_main_t * vm, vlib_node_runtime_t * node,
- vlib_frame_t * frame)
+VLIB_NODE_FN (dslite_ce_encap_node) (vlib_main_t * vm,
+ vlib_node_runtime_t * node,
+ vlib_frame_t * frame)
{
u32 n_left_from, *from, *to_next;
dslite_ce_encap_next_t next_index;
@@ -112,7 +110,6 @@ dslite_ce_encap_node_fn (vlib_main_t * vm, vlib_node_runtime_t * node,
/* *INDENT-OFF* */
VLIB_REGISTER_NODE (dslite_ce_encap_node) = {
- .function = dslite_ce_encap_node_fn,
.name = "dslite-ce-encap",
.vector_size = sizeof (u32),
.format_trace = format_dslite_ce_trace,
@@ -128,8 +125,6 @@ VLIB_REGISTER_NODE (dslite_ce_encap_node) = {
};
/* *INDENT-ON* */
-VLIB_NODE_FUNCTION_MULTIARCH (dslite_ce_encap_node, dslite_ce_encap_node_fn);
-
/*
* fd.io coding-style-patch-verification: ON
*