From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 1C06BA318B for ; Fri, 18 Oct 2019 10:07:17 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id D6CE81BFEE; Fri, 18 Oct 2019 10:07:16 +0200 (CEST) Received: from mail-wr1-f67.google.com (mail-wr1-f67.google.com [209.85.221.67]) by dpdk.org (Postfix) with ESMTP id 0662C1BFDA for ; Fri, 18 Oct 2019 10:07:15 +0200 (CEST) Received: by mail-wr1-f67.google.com with SMTP id r3so5172665wrj.6 for ; Fri, 18 Oct 2019 01:07:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind.com; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=QuZh0e+0ar9IFQZNULd872/GWlYIhqVMWhmSgODQm7I=; b=RxqDXFJi62QOHaB/USJ1t99tOJ4Q3qTCsoFK77MjNKvsKVywyXW6BBg0KQ4FqJuQXo YKHmeGxD61FkyqCWfgdcj6d4mKiFrb0ecEJAjzzbJNTAZgEm/+CEX2xyz1ldD3uPYAME /DVts9x1Hfcc4kgP0bwi3Xw9NAZBZt0OJsjhOeMaZVlwZshXoRwEYWgJ/EdQfz6Hl/j8 AGzqu1wgWKJYs15G7qK26SeG89F5gnVC8sMUqyhAdk/8aNaCJUyhAWcWbpTw9nQrNe2I vFmj6ZhlkxzaqbK0QMUI3rgxRgSDdLx6M/68upcsDHm8u7tgx9Ct0qatVI9+Uxj+rUh1 TzHA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=QuZh0e+0ar9IFQZNULd872/GWlYIhqVMWhmSgODQm7I=; b=EDzHVKB9Rm2jpaWAnTyCZqoNEydrmTIdcI/mAPS/JmMh/rgEe5IPeBJXnytav/huHD TezjM94sT/Ei7kyTH516FQmzDTAojB632Jv9B4tl3oW8MtZVx1C7zY8q5WJTE8oSzKX8 xPqUMOaHkOseQLClrxTa/LhIrQ19kRYP9Z+gQq69OU+ttk8juklra4Phc6nhPvku/ocV kCgC+irqfE+E0s4tj2NPzYYB1n+uGvyLrLZXvhwVezWFotVwwcSO1rTt3Ys1QNAJ7usM FdgOifCE9QjRac+NIWyBmr+Y2UVVqTTI/F/6Nf7L51oiMmuez76cYo3U+/Ulj1/2IlEW lxPw== X-Gm-Message-State: APjAAAWTuHWnaEFUeznvzcyBqyaGpWJGBoNQ+BFfyk+hHb9FwhzKiRLr QjiMhEUVE94lsVF7bZPkHZ6f6HpwkA== X-Google-Smtp-Source: APXvYqxmrhKF4ECPmc6O2rYuikAECZNu0i/uUeS8+6bATnlZueGItv69v1IOM4ZR9bY4AVCjj7I1wQ== X-Received: by 2002:adf:e702:: with SMTP id c2mr5131768wrm.70.1571386035688; Fri, 18 Oct 2019 01:07:15 -0700 (PDT) Received: from [10.16.0.208] (host.78.145.23.62.rev.coltfrance.com. [62.23.145.78]) by smtp.gmail.com with ESMTPSA id z4sm4525206wrh.93.2019.10.18.01.07.14 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 18 Oct 2019 01:07:15 -0700 (PDT) To: Hemant Agrawal , dev@dpdk.org Cc: akhil.goyal@nxp.com References: <20191018075613.2784-1-hemant.agrawal@nxp.com> From: Thierry Herbelot Message-ID: <89e20661-e08c-09a6-4c84-971da2ea6b33@6wind.com> Date: Fri, 18 Oct 2019 10:07:14 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: <20191018075613.2784-1-hemant.agrawal@nxp.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [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" On 10/18/19 9:56 AM, Hemant Agrawal wrote: > 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(-) > > 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], > Acked-by: Thierry Herbelot -- Thierry Herbelot 6WIND Senior Software Engineer