aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/odp/odp_packet.c
diff options
context:
space:
mode:
authorSzymon Sliwa <szs@semihalf.com>2018-01-23 14:30:49 +0100
committerSzymon Sliwa <szs@semihalf.com>2018-02-19 17:47:48 +0100
commit97495b8966f4b25959719e3e1570b3f5942b1d64 (patch)
tree44b4ced3e0f1d36c681d860c833c3361a1ef4498 /src/plugins/odp/odp_packet.c
parent3a6b2d99d969bbb90792e1d09e97aa1be40d10df (diff)
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 <szs@semihalf.com>
Diffstat (limited to 'src/plugins/odp/odp_packet.c')
-rwxr-xr-xsrc/plugins/odp/odp_packet.c5
1 files changed, 5 insertions, 0 deletions
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", &param))
{
clib_warning ("%s: Unknown option %s\n", __func__, param);