diff options
author | Neale Ranns <neale@graphiant.com> | 2021-02-25 08:38:58 +0000 |
---|---|---|
committer | Matthew Smith <mgsmith@netgate.com> | 2021-02-25 14:23:27 +0000 |
commit | 2d49830c7dabd3104770957724d61f8fa6998235 (patch) | |
tree | 9c3fa4801389f138b6ad0d2d554572ad17c026ab /src/vnet/ipsec/ah_encrypt.c | |
parent | 28a0b0197e9894ce835ded5c641fd2a032cf673e (diff) |
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 <neale@graphiant.com>
Change-Id: I6ce7bb4517b508a8f02b11f3bc819e1c5d539c02
Diffstat (limited to 'src/vnet/ipsec/ah_encrypt.c')
-rw-r--r-- | src/vnet/ipsec/ah_encrypt.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/vnet/ipsec/ah_encrypt.c b/src/vnet/ipsec/ah_encrypt.c index 37dd25dc6de..a1f233cfda9 100644 --- a/src/vnet/ipsec/ah_encrypt.c +++ b/src/vnet/ipsec/ah_encrypt.c @@ -501,6 +501,25 @@ VLIB_REGISTER_NODE (ah6_encrypt_node) = { }; /* *INDENT-ON* */ +#ifndef CLIB_MARCH_VARIANT + +static clib_error_t * +ah_encrypt_init (vlib_main_t *vm) +{ + ipsec_main_t *im = &ipsec_main; + + im->ah4_enc_fq_index = + vlib_frame_queue_main_init (ah4_encrypt_node.index, 0); + im->ah6_enc_fq_index = + vlib_frame_queue_main_init (ah6_encrypt_node.index, 0); + + return 0; +} + +VLIB_INIT_FUNCTION (ah_encrypt_init); + +#endif + /* * fd.io coding-style-patch-verification: ON * |