diff options
author | Gabriel Oginski <gabrielx.oginski@intel.com> | 2022-09-06 08:59:16 +0000 |
---|---|---|
committer | Matthew Smith <mgsmith@netgate.com> | 2022-09-07 18:51:23 +0000 |
commit | 563d34ba9d3e887662320835c755e379e994deda (patch) | |
tree | 3d1c4984e7ab180b2f4e8b6c8f0c61390d1951d6 /src/plugins/dpdk | |
parent | 987318e0d12d8d5cb9706974e7117696f81b2bf1 (diff) |
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 <gabrielx.oginski@intel.com>
Change-Id: If22e682c3c10de781d05c2e09b5420f75be151c3
Diffstat (limited to 'src/plugins/dpdk')
-rw-r--r-- | src/plugins/dpdk/cryptodev/cryptodev.c | 1 |
1 files changed, 0 insertions, 1 deletions
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; |