cop: migrate old MULTIARCH macros to VLIB_NODE_FN
Change-Id: Ic0c9c50376ceb0ff4e2d5e52e13b6506e68adf4b
Signed-off-by: Filip Tehlar <ftehlar@cisco.com>
diff --git a/src/vnet/cop/ip4_whitelist.c b/src/vnet/cop/ip4_whitelist.c
index 1b5e336..484ad36 100644
--- a/src/vnet/cop/ip4_whitelist.c
+++ b/src/vnet/cop/ip4_whitelist.c
@@ -33,8 +33,6 @@
return s;
}
-vlib_node_registration_t ip4_cop_whitelist_node;
-
#define foreach_ip4_cop_whitelist_error \
_(DROPPED, "ip4 cop whitelist packets dropped")
@@ -51,8 +49,7 @@
#undef _
};
-static uword
-ip4_cop_whitelist_node_fn (vlib_main_t * vm,
+VLIB_NODE_FN (ip4_cop_whitelist_node) (vlib_main_t * vm,
vlib_node_runtime_t * node,
vlib_frame_t * frame)
{
@@ -304,7 +301,6 @@
}
VLIB_REGISTER_NODE (ip4_cop_whitelist_node) = {
- .function = ip4_cop_whitelist_node_fn,
.name = "ip4-cop-whitelist",
.vector_size = sizeof (u32),
.format_trace = format_ip4_cop_whitelist_trace,
@@ -327,8 +323,6 @@
},
};
-VLIB_NODE_FUNCTION_MULTIARCH (ip4_cop_whitelist_node, ip4_cop_whitelist_node_fn)
-
static clib_error_t *
ip4_whitelist_init (vlib_main_t * vm)
{