summaryrefslogtreecommitdiffstats
path: root/src/vnet/cop/node1.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/vnet/cop/node1.c')
-rw-r--r--src/vnet/cop/node1.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/vnet/cop/node1.c b/src/vnet/cop/node1.c
index b448b531039..172c13d312e 100644
--- a/src/vnet/cop/node1.c
+++ b/src/vnet/cop/node1.c
@@ -32,8 +32,6 @@ static u8 * format_cop_input_trace (u8 * s, va_list * args)
return s;
}
-vlib_node_registration_t cop_input_node;
-
#define foreach_cop_input_error \
_(PROCESSED, "COP input packets processed")
@@ -50,8 +48,7 @@ static char * cop_input_error_strings[] = {
#undef _
};
-static uword
-cop_input_node_fn (vlib_main_t * vm,
+VLIB_NODE_FN (cop_input_node) (vlib_main_t * vm,
vlib_node_runtime_t * node,
vlib_frame_t * frame)
{
@@ -259,7 +256,6 @@ cop_input_node_fn (vlib_main_t * vm,
}
VLIB_REGISTER_NODE (cop_input_node) = {
- .function = cop_input_node_fn,
.name = "cop-input",
.vector_size = sizeof (u32),
.format_trace = format_cop_input_trace,
@@ -282,8 +278,6 @@ VLIB_REGISTER_NODE (cop_input_node) = {
},
};
-VLIB_NODE_FUNCTION_MULTIARCH (cop_input_node, cop_input_node_fn)
-
#define foreach_cop_stub \
_(default-cop-whitelist, default_cop_whitelist)