From 2d49830c7dabd3104770957724d61f8fa6998235 Mon Sep 17 00:00:00 2001 From: Neale Ranns Date: Thu, 25 Feb 2021 08:38:58 +0000 Subject: ipsec: ipsec.h tidy up Type: refactor - remove the extern declaration of the nodes. keep the use of them to the files that declare them - remove duplicate declaration of ipsec_set_async_mode - remove unsued ipsec_add_feature Signed-off-by: Neale Ranns Change-Id: I6ce7bb4517b508a8f02b11f3bc819e1c5d539c02 --- src/vnet/ipsec/ah_decrypt.c | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'src/vnet/ipsec/ah_decrypt.c') diff --git a/src/vnet/ipsec/ah_decrypt.c b/src/vnet/ipsec/ah_decrypt.c index 107ccd2146d..a5e277ee09f 100644 --- a/src/vnet/ipsec/ah_decrypt.c +++ b/src/vnet/ipsec/ah_decrypt.c @@ -473,6 +473,25 @@ VLIB_REGISTER_NODE (ah6_decrypt_node) = { }; /* *INDENT-ON* */ +#ifndef CLIB_MARCH_VARIANT + +static clib_error_t * +ah_decrypt_init (vlib_main_t *vm) +{ + ipsec_main_t *im = &ipsec_main; + + im->ah4_dec_fq_index = + vlib_frame_queue_main_init (ah4_decrypt_node.index, 0); + im->ah6_dec_fq_index = + vlib_frame_queue_main_init (ah6_decrypt_node.index, 0); + + return 0; +} + +VLIB_INIT_FUNCTION (ah_decrypt_init); + +#endif + /* * fd.io coding-style-patch-verification: ON * -- cgit 1.2.3-korg