[2/2] net/iavf: fix build error
Checks
Commit Message
Fix build error and wrong parameter used for function call
Fixes: 7dd3f3e43732 ("net/iavf: add iAVF IPsec inline crypto support")
Signed-off-by: Radu Nicolau <radu.nicolau@intel.com>
---
drivers/net/iavf/iavf_ipsec_crypto.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Comments
On 10/29/2021 12:14 PM, Radu Nicolau wrote:
> Fix build error and wrong parameter used for function call
> Fixes: 7dd3f3e43732 ("net/iavf: add iAVF IPsec inline crypto support")
>
> Signed-off-by: Radu Nicolau <radu.nicolau@intel.com>
Squashed into relevant commit in next-net, thanks.
net/iavf: support IPsec inline crypto
@@ -613,7 +613,7 @@ set_session_parameter(struct iavf_security_ctx *iavf_sctx,
} else if (conf->crypto_xform->type == RTE_CRYPTO_SYM_XFORM_AUTH) {
if (conf->crypto_xform->auth.algo == RTE_CRYPTO_AUTH_AES_GMAC) {
sess->block_sz = get_auth_blocksize(iavf_sctx,
- (enum rte_crypto_auth_algorithm)RTE_CRYPTO_SYM_XFORM_AUTH);
+ conf->crypto_xform->auth.algo);
sess->iv_sz = conf->crypto_xform->auth.iv.length;
sess->icv_sz = conf->crypto_xform->auth.digest_length;
} else {