From patchwork Fri Oct 29 11:14:22 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Radu Nicolau X-Patchwork-Id: 103236 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 810DFA0032; Fri, 29 Oct 2021 13:28:46 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 6C85E41136; Fri, 29 Oct 2021 13:28:46 +0200 (CEST) Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by mails.dpdk.org (Postfix) with ESMTP id 35F8B410E1 for ; Fri, 29 Oct 2021 13:28:45 +0200 (CEST) X-IronPort-AV: E=McAfee;i="6200,9189,10151"; a="211416911" X-IronPort-AV: E=Sophos;i="5.87,192,1631602800"; d="scan'208";a="211416911" 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:44 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.87,192,1631602800"; d="scan'208";a="530371535" Received: from silpixa00400884.ir.intel.com ([10.243.22.82]) by orsmga001.jf.intel.com with ESMTP; 29 Oct 2021 04:28:42 -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:22 +0100 Message-Id: <20211029111423.2924947-1-radu.nicolau@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Subject: [dpdk-dev] [PATCH 1/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 clang build error, remove unused function Fixes: f12d8bf150f5 ("net/iavf: rework Tx path") Signed-off-by: Radu Nicolau --- drivers/net/iavf/iavf_rxtx.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/drivers/net/iavf/iavf_rxtx.c b/drivers/net/iavf/iavf_rxtx.c index c782cacc6e..bef2891835 100644 --- a/drivers/net/iavf/iavf_rxtx.c +++ b/drivers/net/iavf/iavf_rxtx.c @@ -2396,13 +2396,6 @@ iavf_build_data_desc_cmd_offset_fields(volatile uint64_t *qw1, ((uint64_t)l2tag1 << IAVF_TXD_DATA_QW1_L2TAG1_SHIFT)); } -static inline void -iavf_fill_data_desc_buffer_sz_field(volatile uint64_t *field, uint16_t value) -{ - *field |= (((uint64_t)value << IAVF_TXD_DATA_QW1_TX_BUF_SZ_SHIFT) & - IAVF_TXD_DATA_QW1_TX_BUF_SZ_MASK); - } - static inline void iavf_fill_data_desc(volatile struct iavf_tx_desc *desc, struct rte_mbuf *m, uint64_t desc_template, 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 {