net/iavf: fix device initialization without inline crypto
authorRadu Nicolau <radu.nicolau@intel.com>
Wed, 20 Apr 2022 11:03:01 +0000 (12:03 +0100)
committerQi Zhang <qi.z.zhang@intel.com>
Tue, 24 May 2022 02:53:37 +0000 (04:53 +0200)
commit3940cd9b8cb3b8b9d1ab3a7b4b18177b1e954d82
tree2e5c7c9b1b1349ba8353aee20f9bfabcf9047ca5
parent149280731bf383e369262aa156b1a3d7e6fbbe6f
net/iavf: fix device initialization without inline crypto

When the inline crypto feature VF capability flag is set also check if the
feature is enabled, otherwise the initialization will fail even when
the inline crypto is not required.

Fixes: 6bc987ecb860 ("net/iavf: support IPsec inline crypto")
Cc: stable@dpdk.org
Signed-off-by: Radu Nicolau <radu.nicolau@intel.com>
Acked-by: Qi Zhang <qi.z.zhang@intel.com>
drivers/net/iavf/iavf_ipsec_crypto.c