diff options
author | Szymon Sliwa <szs@semihalf.com> | 2018-02-07 13:06:25 +0100 |
---|---|---|
committer | Szymon Sliwa <szs@semihalf.com> | 2018-02-21 16:43:46 +0100 |
commit | 2c8d4cb2c7ed986f084e393259a0fec89072ef3d (patch) | |
tree | 6666259d76b50efb3dc53f9a835fc030705d07c6 /src/plugins/odp/ipsec/esp_decrypt.c | |
parent | 9fddc230ddb574398bdcf8e4f1133f6d27d2846f (diff) |
plugins: odp: Cosmetic changes in the IPsec implementation
1) renamed ipsec_api to enable_odp_ipsec, for consistency
2) added crude ASSERTs to make sure the configuration is sane
3) removed passing ipsec_api as argument, as this is a global flag now
4) reorder code - put ipsec initialization before putting
workers in polling mode
5) remove not used recycle vector from esp_encrypt.c/esp_decrypt.c
6) change clib_error_return to clib_error in ipsec.c, as
clib_error_return silently passes when 0 is the first argument
Change-Id: Id2c6da985e872f12c8409918fb9cc6113b486d10
Signed-off-by: Szymon Sliwa <szs@semihalf.com>
Diffstat (limited to 'src/plugins/odp/ipsec/esp_decrypt.c')
-rw-r--r-- | src/plugins/odp/ipsec/esp_decrypt.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/plugins/odp/ipsec/esp_decrypt.c b/src/plugins/odp/ipsec/esp_decrypt.c index 06707e3c..442776a3 100644 --- a/src/plugins/odp/ipsec/esp_decrypt.c +++ b/src/plugins/odp/ipsec/esp_decrypt.c @@ -104,7 +104,6 @@ odp_crypto_esp_decrypt_node_fn (vlib_main_t * vm, u32 n_left_from, *from, next_index, *to_next; ipsec_main_t *im = &ipsec_main; esp_main_t *em = &odp_esp_main; - u32 *recycle = 0; from = vlib_frame_vector_args (from_frame); n_left_from = from_frame->n_vectors; odp_crypto_main_t *ocm = &odp_crypto_main; @@ -415,9 +414,6 @@ odp_crypto_esp_decrypt_node_fn (vlib_main_t * vm, from_frame->n_vectors); free_buffers_and_exit: - if (recycle) - vlib_buffer_free (vm, recycle, vec_len (recycle)); - vec_free (recycle); return from_frame->n_vectors; } |