diff options
author | Klement Sekera <ksekera@cisco.com> | 2018-10-29 13:38:19 +0100 |
---|---|---|
committer | Damjan Marion <dmarion@me.com> | 2018-10-29 15:03:34 +0000 |
commit | b8f354470628e464452c062ca0802f59f8e572f3 (patch) | |
tree | ced1941d441492d1c24c208a62e93bf60a83d0c8 /src/vnet/ipsec/ipsec_input.c | |
parent | cd35e53c928f666e50342e27d69e6dd7d60e1283 (diff) |
migrate ipsec to new multiarch infra
Change-Id: Ibef46e068cd72415af28920b0146adf48105bf68
Signed-off-by: Klement Sekera <ksekera@cisco.com>
Diffstat (limited to 'src/vnet/ipsec/ipsec_input.c')
-rw-r--r-- | src/vnet/ipsec/ipsec_input.c | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/src/vnet/ipsec/ipsec_input.c b/src/vnet/ipsec/ipsec_input.c index 6d5b2dcce69..19c3b5bcef1 100644 --- a/src/vnet/ipsec/ipsec_input.c +++ b/src/vnet/ipsec/ipsec_input.c @@ -170,9 +170,9 @@ ipsec6_input_protect_policy_match (ipsec_spd_t * spd, static vlib_node_registration_t ipsec4_input_node; -static uword -ipsec4_input_node_fn (vlib_main_t * vm, - vlib_node_runtime_t * node, vlib_frame_t * from_frame) +VLIB_NODE_FN (ipsec4_input_node) (vlib_main_t * vm, + vlib_node_runtime_t * node, + vlib_frame_t * from_frame) { u32 n_left_from, *from, next_index, *to_next; ipsec_main_t *im = &ipsec_main; @@ -329,7 +329,6 @@ ipsec4_input_node_fn (vlib_main_t * vm, /* *INDENT-OFF* */ VLIB_REGISTER_NODE (ipsec4_input_node,static) = { - .function = ipsec4_input_node_fn, .name = "ipsec4-input", .vector_size = sizeof (u32), .format_trace = format_ipsec_input_trace, @@ -347,13 +346,12 @@ VLIB_REGISTER_NODE (ipsec4_input_node,static) = { }; /* *INDENT-ON* */ -VLIB_NODE_FUNCTION_MULTIARCH (ipsec4_input_node, ipsec4_input_node_fn); - static vlib_node_registration_t ipsec6_input_node; -static uword -ipsec6_input_node_fn (vlib_main_t * vm, - vlib_node_runtime_t * node, vlib_frame_t * from_frame) + +VLIB_NODE_FN (ipsec6_input_node) (vlib_main_t * vm, + vlib_node_runtime_t * node, + vlib_frame_t * from_frame) { u32 n_left_from, *from, next_index, *to_next; ipsec_main_t *im = &ipsec_main; @@ -477,7 +475,6 @@ ipsec6_input_node_fn (vlib_main_t * vm, /* *INDENT-OFF* */ VLIB_REGISTER_NODE (ipsec6_input_node,static) = { - .function = ipsec6_input_node_fn, .name = "ipsec6-input", .vector_size = sizeof (u32), .format_trace = format_ipsec_input_trace, @@ -490,7 +487,6 @@ VLIB_REGISTER_NODE (ipsec6_input_node,static) = { }; /* *INDENT-ON* */ -VLIB_NODE_FUNCTION_MULTIARCH (ipsec6_input_node, ipsec6_input_node_fn); /* * fd.io coding-style-patch-verification: ON * |