From 97495b8966f4b25959719e3e1570b3f5942b1d64 Mon Sep 17 00:00:00 2001 From: Szymon Sliwa Date: Tue, 23 Jan 2018 14:30:49 +0100 Subject: plugins: odp: Add asynchronous IPsec API nodes To use asynchronous mode put async in the odp section of the startup.conf file, like this: odp { enable-odp-ipsec async } Falls back to synchronous mode. Change-Id: Iacfdc03158228f4385511e6736fb24a97284320c Signed-off-by: Szymon Sliwa --- src/plugins/odp/odp_packet.c | 5 +++++ 1 file changed, 5 insertions(+) (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 5a43a444..7f5f05ce 100755 --- a/src/plugins/odp/odp_packet.c +++ b/src/plugins/odp/odp_packet.c @@ -25,6 +25,7 @@ odp_if_config_t *if_config; odp_crypto_main_t odp_crypto_main; u8 enable_odp_crypto; u8 ipsec_api; +u8 is_async; static u32 odp_packet_eth_flag_change (vnet_main_t * vnm, vnet_hw_interface_t * hi, @@ -435,6 +436,10 @@ odp_config (vlib_main_t * vm, unformat_input_t * input) { ipsec_api = 1; } + else if (unformat (input, "async")) + { + is_async = 1; + } else if (unformat (input, "%s", ¶m)) { clib_warning ("%s: Unknown option %s\n", __func__, param); -- cgit 1.2.3-korg