From patchwork Fri Oct 18 07:56:11 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hemant Agrawal X-Patchwork-Id: 176775 Delivered-To: patch@linaro.org Received: by 2002:a92:7e96:0:0:0:0:0 with SMTP id q22csp503656ill; Fri, 18 Oct 2019 00:59:03 -0700 (PDT) X-Google-Smtp-Source: APXvYqwrFUzvr2FMB9LH/Nsbzi7ZhUMnaNBnpwI57oupe4dk9nhC4dfj+YGygXYGlcx8PTd87x4y X-Received: by 2002:a17:906:6a15:: with SMTP id o21mr7260817ejr.79.1571385543754; Fri, 18 Oct 2019 00:59:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571385543; cv=none; d=google.com; s=arc-20160816; b=ihsN6+fOL+smMeN6h2VRUurgQxBEJWsHP1Ws2Ig2/JPcSWD9AKWQ6Ty7KI/fzob5+Z qZml5CJkowq69svXdnZaAWbodlWPpkVJhnPBQptyBitVFIieyRhUj16DMByZhLPmIsB3 W+ZI5zdfNuGnjPcKIBKobWcSHFr/pxXJFtzel6NQ1ceUW8FdKtJdwbEkkV+pSbtcd9tS h+QXQE/o/pQVR4l9I3GSdDxv//JHyADSTGfS3UrEeyHJIAHobTLU12/ZkprXHKU0KzgC XunSFC1rMRoRZ+wSOwqpcTj5V4A3wuUK+pkrUSF7vXpMwT90PrWRvGpGZvpDiEdbxUqz uXjg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:message-id:date:cc:to :from; bh=o1iZjjcF6f05FTzbEEYXF9/aP/5gx2mHp0fttsWJ7mA=; b=D2l5tTfFRHjN1rD1CZ8c9ke5yXYLe8+C1QV9eyK85skBQfMpsRmYl2I+Id1D8AgYkf 7W9Uc7U192DQYpEv8lZAHbzQkpgO+fG6Af6ev4Weif6jpinntbY68mpOR+xJbEfnhJ+K SalQW4HrqJMLECDxJmA50MiMyMoZV5ZSIQJ6s0VFo6WKZ9pxWmLNGAwHmx3t4EPQWlYd fwbW/Socq+vZ5CncaDiYz4SS8E5lV0/3e2FSUaeG2mJnNB94kSZLgAmr3FReePzpnn5A 7MaeOkSdm6ATcfwS+8nz2iC7LpHyQHhdCHXbEv/3NIwDxtjO241dF6UITvaBXm8yQkdc rHAg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from dpdk.org (dpdk.org. [92.243.14.124]) by mx.google.com with ESMTP id t37si3823142edd.25.2019.10.18.00.59.03; Fri, 18 Oct 2019 00:59:03 -0700 (PDT) Received-SPF: pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) client-ip=92.243.14.124; Authentication-Results: mx.google.com; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 5B7D51C035; Fri, 18 Oct 2019 09:59:02 +0200 (CEST) Received: from inva021.nxp.com (inva021.nxp.com [92.121.34.21]) by dpdk.org (Postfix) with ESMTP id 06FE21C033 for ; Fri, 18 Oct 2019 09:59:01 +0200 (CEST) Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 918F2200717; Fri, 18 Oct 2019 09:59:00 +0200 (CEST) Received: from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com [165.114.16.14]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 5DDE8200723; Fri, 18 Oct 2019 09:58:58 +0200 (CEST) Received: from bf-netperf1.ap.freescale.net (bf-netperf1.ap.freescale.net [10.232.133.63]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id 334AA402B3; Fri, 18 Oct 2019 15:58:55 +0800 (SGT) From: Hemant Agrawal To: dev@dpdk.org Cc: akhil.goyal@nxp.com, thierry.herbelot@6wind.com, Hemant Agrawal Date: Fri, 18 Oct 2019 13:26:11 +0530 Message-Id: <20191018075613.2784-1-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.17.1 X-Virus-Scanned: ClamAV using ClamSMTP Subject: [dpdk-dev] [PATCH] test/crypto: fix compilation issue without security X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 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" This patch fixes the compilation issue in test_cryptodev.c when RTE_LIBRTE_SECURITY is disabled. Fixes: d883e6e7131b ("test/crypto: add PDCP C-Plane encap cases") Signed-off-by: Hemant Agrawal --- app/test/test_cryptodev.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) -- 2.17.1 Acked-by: Thierry Herbelot Acked-by: Akhil Goyal diff --git a/app/test/test_cryptodev.c b/app/test/test_cryptodev.c index 65d80837a..c4d593f34 100644 --- a/app/test/test_cryptodev.c +++ b/app/test/test_cryptodev.c @@ -71,9 +71,13 @@ struct crypto_unittest_params { union { struct rte_cryptodev_sym_session *sess; +#ifdef RTE_LIBRTE_SECURITY struct rte_security_session *sec_session; +#endif }; +#ifdef RTE_LIBRTE_SECURITY enum rte_security_session_action_type type; +#endif struct rte_crypto_op *op; struct rte_mbuf *obuf, *ibuf; @@ -573,6 +577,7 @@ ut_teardown(void) struct rte_cryptodev_stats stats; /* free crypto session structure */ +#ifdef RTE_LIBRTE_SECURITY if (ut_params->type == RTE_SECURITY_ACTION_TYPE_LOOKASIDE_PROTOCOL) { if (ut_params->sec_session) { rte_security_session_destroy(rte_cryptodev_get_sec_ctx @@ -580,7 +585,9 @@ ut_teardown(void) ut_params->sec_session); ut_params->sec_session = NULL; } - } else { + } else +#endif + { if (ut_params->sess) { rte_cryptodev_sym_session_clear( ts_params->valid_devs[0],