plugins: odp: Cosmetic changes in the IPsec implementation 57/10657/5
authorSzymon Sliwa <[email protected]>
Wed, 7 Feb 2018 12:06:25 +0000 (13:06 +0100)
committerSzymon Sliwa <[email protected]>
Wed, 21 Feb 2018 15:43:46 +0000 (16:43 +0100)
commit2c8d4cb2c7ed986f084e393259a0fec89072ef3d
tree6666259d76b50efb3dc53f9a835fc030705d07c6
parent9fddc230ddb574398bdcf8e4f1133f6d27d2846f
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 <[email protected]>
src/plugins/odp/ipsec/crypto_input.c
src/plugins/odp/ipsec/esp_decrypt.c
src/plugins/odp/ipsec/esp_encrypt.c
src/plugins/odp/ipsec/ipsec.c
src/plugins/odp/ipsec/ipsec.h
src/plugins/odp/odp_packet.c
src/plugins/odp/odp_packet.h