From patchwork Fri Oct 29 11:14:23 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Radu Nicolau X-Patchwork-Id: 103237 X-Patchwork-Delegate: qi.z.zhang@intel.com Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 8A33DA0032; Fri, 29 Oct 2021 13:28:50 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 70DCA4117E; Fri, 29 Oct 2021 13:28:48 +0200 (CEST) Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by mails.dpdk.org (Postfix) with ESMTP id CBA4E410E1 for ; Fri, 29 Oct 2021 13:28:45 +0200 (CEST) X-IronPort-AV: E=McAfee;i="6200,9189,10151"; a="211416913" X-IronPort-AV: E=Sophos;i="5.87,192,1631602800"; d="scan'208";a="211416913" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Oct 2021 04:28:45 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.87,192,1631602800"; d="scan'208";a="530371542" Received: from silpixa00400884.ir.intel.com ([10.243.22.82]) by orsmga001.jf.intel.com with ESMTP; 29 Oct 2021 04:28:44 -0700 From: Radu Nicolau To: Jingjing Wu , Beilei Xing Cc: dev@dpdk.org, qi.z.zhang@intel.com, ferruh.yigit@intel.com, Radu Nicolau Date: Fri, 29 Oct 2021 12:14:23 +0100 Message-Id: <20211029111423.2924947-2-radu.nicolau@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211029111423.2924947-1-radu.nicolau@intel.com> References: <20211029111423.2924947-1-radu.nicolau@intel.com> MIME-Version: 1.0 Subject: [dpdk-dev] [PATCH 2/2] net/iavf: fix build error X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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 --- 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 {