dpdk-cryptodev: reduce request to enable async 82/37082/2
authorGabriel Oginski <gabrielx.oginski@intel.com>
Tue, 6 Sep 2022 08:59:16 +0000 (08:59 +0000)
committerMatthew Smith <mgsmith@netgate.com>
Wed, 7 Sep 2022 18:51:23 +0000 (18:51 +0000)
commit563d34ba9d3e887662320835c755e379e994deda
tree3d1c4984e7ab180b2f4e8b6c8f0c61390d1951d6
parent987318e0d12d8d5cb9706974e7117696f81b2bf1
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
src/plugins/dpdk/cryptodev/cryptodev.c