[2/2] net/iavf: fix build error

Message ID 20211029111423.2924947-2-radu.nicolau@intel.com (mailing list archive)
State Accepted, archived
Delegated to: Qi Zhang
Headers
Series [1/2] net/iavf: fix build error |

Checks

Context Check Description
ci/checkpatch success coding style OK

Commit Message

Radu Nicolau Oct. 29, 2021, 11:14 a.m. UTC
  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

Ferruh Yigit Oct. 29, 2021, 1:19 p.m. UTC | #1
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
  

Patch

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 {