[dpdk-dev] [PATCH 2/2] net/iavf: fix build error

Radu Nicolau radu.nicolau at intel.com
Fri Oct 29 13:14:23 CEST 2021


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 at intel.com>
---
 drivers/net/iavf/iavf_ipsec_crypto.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/iavf/iavf_ipsec_crypto.c b/drivers/net/iavf/iavf_ipsec_crypto.c
index a8022f8ed7..19e703e689 100644
--- a/drivers/net/iavf/iavf_ipsec_crypto.c
+++ b/drivers/net/iavf/iavf_ipsec_crypto.c
@@ -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 {
-- 
2.25.1



More information about the dev mailing list