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_output.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_output.c')
-rw-r--r-- | src/vnet/ipsec/ipsec_output.c | 21 |
1 files changed, 8 insertions, 13 deletions
diff --git a/src/vnet/ipsec/ipsec_output.c b/src/vnet/ipsec/ipsec_output.c index e020f2a6532..6b99965d501 100644 --- a/src/vnet/ipsec/ipsec_output.c +++ b/src/vnet/ipsec/ipsec_output.c @@ -419,16 +419,15 @@ ipsec_output_inline (vlib_main_t * vm, vlib_node_runtime_t * node, return from_frame->n_vectors; } -static uword -ipsec4_output_node_fn (vlib_main_t * vm, vlib_node_runtime_t * node, - vlib_frame_t * frame) +VLIB_NODE_FN (ipsec4_output_node) (vlib_main_t * vm, + vlib_node_runtime_t * node, + vlib_frame_t * frame) { return ipsec_output_inline (vm, node, frame, 0); } /* *INDENT-OFF* */ -VLIB_REGISTER_NODE (ipsec4_output_node,static) = { - .function = ipsec4_output_node_fn, +VLIB_REGISTER_NODE (ipsec4_output_node) = { .name = "ipsec4-output", .vector_size = sizeof (u32), .format_trace = format_ipsec_output_trace, @@ -446,18 +445,15 @@ VLIB_REGISTER_NODE (ipsec4_output_node,static) = { }; /* *INDENT-ON* */ -VLIB_NODE_FUNCTION_MULTIARCH (ipsec4_output_node, ipsec4_output_node_fn); - -static uword -ipsec6_output_node_fn (vlib_main_t * vm, vlib_node_runtime_t * node, - vlib_frame_t * frame) +VLIB_NODE_FN (ipsec6_output_node) (vlib_main_t * vm, + vlib_node_runtime_t * node, + vlib_frame_t * frame) { return ipsec_output_inline (vm, node, frame, 1); } /* *INDENT-OFF* */ -VLIB_REGISTER_NODE (ipsec6_output_node,static) = { - .function = ipsec6_output_node_fn, +VLIB_REGISTER_NODE (ipsec6_output_node) = { .name = "ipsec6-output", .vector_size = sizeof (u32), .format_trace = format_ipsec_output_trace, @@ -475,7 +471,6 @@ VLIB_REGISTER_NODE (ipsec6_output_node,static) = { }; /* *INDENT-ON* */ -VLIB_NODE_FUNCTION_MULTIARCH (ipsec6_output_node, ipsec6_output_node_fn); #else /* IPSEC > 1 */ /* Dummy ipsec output node, in case when IPSec is disabled */ |