diff options
author | Szymon Sliwa <szs@semihalf.com> | 2018-01-24 14:05:06 +0100 |
---|---|---|
committer | Szymon Sliwa <szs@semihalf.com> | 2018-02-19 17:47:48 +0100 |
commit | 84cc712ed30960bd4b4598ce387fc9ed6a610987 (patch) | |
tree | f4e3a9bed98f9c54b65e7069a00883f73d577c65 /src/plugins/odp/odp_packet.c | |
parent | 97495b8966f4b25959719e3e1570b3f5942b1d64 (diff) |
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 <szs@semihalf.com>
Diffstat (limited to 'src/plugins/odp/odp_packet.c')
-rwxr-xr-x | src/plugins/odp/odp_packet.c | 11 |
1 files changed, 8 insertions, 3 deletions
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); |