diff options
author | Filip Tehlar <ftehlar@cisco.com> | 2019-03-05 01:22:04 -0800 |
---|---|---|
committer | Damjan Marion <dmarion@me.com> | 2019-03-06 11:41:30 +0000 |
commit | 1fc33b3d413d8868b14dbf3368fa4c155fa4e393 (patch) | |
tree | 7899c1377e9af2267880a47525772ff1a79290e4 /src/vnet/cop/node1.c | |
parent | e1714d3ba2fa91db5fcede631e2acafca899604c (diff) |
cop: migrate old MULTIARCH macros to VLIB_NODE_FN
Change-Id: Ic0c9c50376ceb0ff4e2d5e52e13b6506e68adf4b
Signed-off-by: Filip Tehlar <ftehlar@cisco.com>
Diffstat (limited to 'src/vnet/cop/node1.c')
-rw-r--r-- | src/vnet/cop/node1.c | 8 |
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) |