From patchwork Mon Sep 30 08:32: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: 174721 Delivered-To: patch@linaro.org Received: by 2002:ac9:19ad:0:0:0:0:0 with SMTP id d45csp6527469oce; Mon, 30 Sep 2019 01:34:47 -0700 (PDT) X-Google-Smtp-Source: APXvYqyWwXhfpFwuTw85/AXtbaNq+y9v+pHhre028MoRUIf44ksrW/5dQhpPNVopAfps2IYRMN8T X-Received: by 2002:a17:906:1d03:: with SMTP id n3mr18321307ejh.287.1569832487513; Mon, 30 Sep 2019 01:34:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569832487; cv=none; d=google.com; s=arc-20160816; b=p2yTzjAHkhLdFentsNjYBhH/Cc2ATbnxJWdyMPMS9y4QP/3LLuffqDIbnbSnQ0p81U jWPEi+xRwahYqLVaT5C1W3YWZ29P1L7AQOHZPeeCvG3K0nIi5VvXkjois/DagfIKJfpL U2MZJ7sTVbxCR1r8WXpIJi8G1YHak7hmNcItE7zaJ85G2jr/hxQ2sLqRK14F19z/pxLN eynG4etcfHwwAInEpWD5AYpYcZqZ+oSfGXI2Z1zj5W+pcIRhpwnvqQRfv2EO1xbGKVKt hPjbM+cRZosjmyHnXCUjkTlClXzi/lThPcCIdV5iu/KOJraemYb93xnWspmRkF9V9tj6 FcrA== 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:references:in-reply-to :message-id:date:cc:to:from; bh=gkU1VMMwD5XWSCMrad8/QUfU1ApL8D0Bv87vSA2BNS4=; b=GaG5vBLWrIcMjP3TM0WbSqPGGwQdz8f/daSEDmWfKuRWtLZf533O07Yhjq15v0IY3f 3b9sEbVSS10ruxQUcU8wVnpHneicqgKxXYsvZW5p78CoAHWI0AA3Cvu1ud9bm30nYBC1 HTGe1KkgSGPVG/WXOFmhZM/JXLUHru+fd83Xq2CAgHk33MpZ7WvpKxkZnAgIVZlwkym/ wYJWtq6eL2xa+60M55b7mo6e+cWX/mT8QA8NNWKGybYC1X7m7Jy+3XDPYNFSAH1PQx1G LMtPvGvCwF/ZRxy510wCt/kzpM1d3Tgr8BbsVLh5OqiPNY6qoDW9oR3bnnY8ZB1p1T5a RfpA== 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 v10si6913296edc.224.2019.09.30.01.34.47; Mon, 30 Sep 2019 01:34:47 -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 040B837B0; Mon, 30 Sep 2019 10:34:47 +0200 (CEST) Received: from inva020.nxp.com (inva020.nxp.com [92.121.34.13]) by dpdk.org (Postfix) with ESMTP id BAD3C343C for ; Mon, 30 Sep 2019 10:34:39 +0200 (CEST) Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 595AA1A0816; Mon, 30 Sep 2019 10:34:39 +0200 (CEST) Received: from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com [165.114.16.14]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id EABBE1A0A57; Mon, 30 Sep 2019 10:34:37 +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 8BB04402C1; Mon, 30 Sep 2019 16:34:35 +0800 (SGT) From: Hemant Agrawal To: dev@dpdk.org Cc: jerinj@marvell.com Date: Mon, 30 Sep 2019 14:02:11 +0530 Message-Id: <20190930083215.8241-3-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190930083215.8241-1-hemant.agrawal@nxp.com> References: <20190927075841.21841-1-hemant.agrawal@nxp.com> <20190930083215.8241-1-hemant.agrawal@nxp.com> X-Virus-Scanned: ClamAV using ClamSMTP Subject: [dpdk-dev] [PATCH v4 2/6] event/dpaa2: remove conditional compilation 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 removes the conditional compilation for cryptodev event support from RTE_LIBRTE_SECURITY flag. Signed-off-by: Hemant Agrawal --- drivers/event/dpaa2/Makefile | 2 -- drivers/event/dpaa2/dpaa2_eventdev.c | 6 ------ 2 files changed, 8 deletions(-) -- 2.17.1 diff --git a/drivers/event/dpaa2/Makefile b/drivers/event/dpaa2/Makefile index 470157f25..e0bb527b1 100644 --- a/drivers/event/dpaa2/Makefile +++ b/drivers/event/dpaa2/Makefile @@ -24,10 +24,8 @@ LDLIBS += -lrte_common_dpaax CFLAGS += -I$(RTE_SDK)/drivers/net/dpaa2 CFLAGS += -I$(RTE_SDK)/drivers/net/dpaa2/mc -ifeq ($(CONFIG_RTE_LIBRTE_SECURITY),y) LDLIBS += -lrte_pmd_dpaa2_sec CFLAGS += -I$(RTE_SDK)/drivers/crypto/dpaa2_sec -endif # versioning export map EXPORT_MAP := rte_pmd_dpaa2_event_version.map diff --git a/drivers/event/dpaa2/dpaa2_eventdev.c b/drivers/event/dpaa2/dpaa2_eventdev.c index b8cb437a0..98b487603 100644 --- a/drivers/event/dpaa2/dpaa2_eventdev.c +++ b/drivers/event/dpaa2/dpaa2_eventdev.c @@ -33,9 +33,7 @@ #include #include #include -#ifdef RTE_LIBRTE_SECURITY #include -#endif #include "dpaa2_eventdev.h" #include "dpaa2_eventdev_logs.h" #include @@ -794,7 +792,6 @@ dpaa2_eventdev_eth_stop(const struct rte_eventdev *dev, return 0; } -#ifdef RTE_LIBRTE_SECURITY static int dpaa2_eventdev_crypto_caps_get(const struct rte_eventdev *dev, const struct rte_cryptodev *cdev, @@ -937,7 +934,6 @@ dpaa2_eventdev_crypto_stop(const struct rte_eventdev *dev, return 0; } -#endif static struct rte_eventdev_ops dpaa2_eventdev_ops = { .dev_infos_get = dpaa2_eventdev_info_get, @@ -960,13 +956,11 @@ static struct rte_eventdev_ops dpaa2_eventdev_ops = { .eth_rx_adapter_queue_del = dpaa2_eventdev_eth_queue_del, .eth_rx_adapter_start = dpaa2_eventdev_eth_start, .eth_rx_adapter_stop = dpaa2_eventdev_eth_stop, -#ifdef RTE_LIBRTE_SECURITY .crypto_adapter_caps_get = dpaa2_eventdev_crypto_caps_get, .crypto_adapter_queue_pair_add = dpaa2_eventdev_crypto_queue_add, .crypto_adapter_queue_pair_del = dpaa2_eventdev_crypto_queue_del, .crypto_adapter_start = dpaa2_eventdev_crypto_start, .crypto_adapter_stop = dpaa2_eventdev_crypto_stop, -#endif }; static int