summaryrefslogtreecommitdiffstats
path: root/src/plugins/nat/dslite_ce_decap.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/nat/dslite_ce_decap.c')
-rw-r--r--src/plugins/nat/dslite_ce_decap.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/src/plugins/nat/dslite_ce_decap.c b/src/plugins/nat/dslite_ce_decap.c
index c16ac17c2a6..77b80ea0f45 100644
--- a/src/plugins/nat/dslite_ce_decap.c
+++ b/src/plugins/nat/dslite_ce_decap.c
@@ -15,8 +15,6 @@
#include <nat/dslite.h>
#include <nat/nat_inlines.h>
-vlib_node_registration_t dslite_ce_decap_node;
-
typedef enum
{
DSLITE_CE_DECAP_NEXT_IP4_LOOKUP,
@@ -31,9 +29,9 @@ static char *dslite_ce_decap_error_strings[] = {
#undef _
};
-static uword
-dslite_ce_decap_node_fn (vlib_main_t * vm, vlib_node_runtime_t * node,
- vlib_frame_t * frame)
+VLIB_NODE_FN (dslite_ce_decap_node) (vlib_main_t * vm,
+ vlib_node_runtime_t * node,
+ vlib_frame_t * frame)
{
u32 n_left_from, *from, *to_next;
dslite_ce_decap_next_t next_index;
@@ -119,7 +117,6 @@ dslite_ce_decap_node_fn (vlib_main_t * vm, vlib_node_runtime_t * node,
/* *INDENT-OFF* */
VLIB_REGISTER_NODE (dslite_ce_decap_node) = {
- .function = dslite_ce_decap_node_fn,
.name = "dslite-ce-decap",
.vector_size = sizeof (u32),
.format_trace = format_dslite_ce_trace,
@@ -136,8 +133,6 @@ VLIB_REGISTER_NODE (dslite_ce_decap_node) = {
};
/* *INDENT-ON* */
-VLIB_NODE_FUNCTION_MULTIARCH (dslite_ce_decap_node, dslite_ce_decap_node_fn);
-
/*
* fd.io coding-style-patch-verification: ON
*