From 84cc712ed30960bd4b4598ce387fc9ed6a610987 Mon Sep 17 00:00:00 2001 From: Szymon Sliwa Date: Wed, 24 Jan 2018 14:05:06 +0100 Subject: plugins: odp: Add support for IPsec inline operation To use inline mode put inline flag in the odp section of the startup.conf file, like this: odp { enable-odp-ipsec inline } Falls back to lookaside mode. Change-Id: I1292a7254b25a15b25285773a43bae112394827d Signed-off-by: Szymon Sliwa --- src/plugins/odp/odp_packet.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'src/plugins/odp/odp_packet.c') diff --git a/src/plugins/odp/odp_packet.c b/src/plugins/odp/odp_packet.c index 7f5f05ce..29b2ef01 100755 --- a/src/plugins/odp/odp_packet.c +++ b/src/plugins/odp/odp_packet.c @@ -26,6 +26,7 @@ odp_crypto_main_t odp_crypto_main; u8 enable_odp_crypto; u8 ipsec_api; u8 is_async; +u8 is_inline; static u32 odp_packet_eth_flag_change (vnet_main_t * vnm, vnet_hw_interface_t * hi, @@ -437,9 +438,13 @@ odp_config (vlib_main_t * vm, unformat_input_t * input) ipsec_api = 1; } else if (unformat (input, "async")) - { - is_async = 1; - } + { + is_async = 1; + } + else if (unformat (input, "inline")) + { + is_inline = 1; + } else if (unformat (input, "%s", ¶m)) { clib_warning ("%s: Unknown option %s\n", __func__, param); -- cgit 1.2.3-korg