From 563d34ba9d3e887662320835c755e379e994deda Mon Sep 17 00:00:00 2001 From: Gabriel Oginski Date: Tue, 6 Sep 2022 08:59:16 +0000 Subject: [PATCH] dpdk-cryptodev: reduce request to enable async Originally initialization cryptodev device(s) calls double request to enabled async mode and increased ref count twice for async mode. Due to this cannot be change any assigned async handlers to other async crypto engine. The fixes reduce double request to enable async mode in initialization cryptodev device(s) and VPP can be change assigned async handlers to other crypto engine after disabled all async feature, for example: ipsec, wireguard. Type: fix Signed-off-by: Gabriel Oginski Change-Id: If22e682c3c10de781d05c2e09b5420f75be151c3 --- src/plugins/dpdk/cryptodev/cryptodev.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/plugins/dpdk/cryptodev/cryptodev.c b/src/plugins/dpdk/cryptodev/cryptodev.c index b1da6c2020b..c004e4ccf02 100644 --- a/src/plugins/dpdk/cryptodev/cryptodev.c +++ b/src/plugins/dpdk/cryptodev/cryptodev.c @@ -1201,7 +1201,6 @@ dpdk_cryptodev_init (vlib_main_t * vm) /* this engine is only enabled when cryptodev device(s) are presented in * startup.conf. Assume it is wanted to be used, turn on async mode here. */ - vnet_crypto_request_async_mode (1); ipsec_set_async_mode (1); return 0; -- 2.16.6