From patchwork Fri Sep 6 10:44:34 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hemant Agrawal X-Patchwork-Id: 173217 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:ce:0:0:0:0 with SMTP id r14csp537573ilq; Fri, 6 Sep 2019 03:46:31 -0700 (PDT) X-Google-Smtp-Source: APXvYqwtQLAjHBzQ0VXPRKE2u4bF9Dcmddx1adRi3gbdztwlJQY8+EHWoTBV2LHfY6KnAt+hM75i X-Received: by 2002:a17:906:b7c9:: with SMTP id fy9mr6500970ejb.237.1567766791216; Fri, 06 Sep 2019 03:46:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567766791; cv=none; d=google.com; s=arc-20160816; b=beyzCZ4FwXCCUzwkEiRNCVlyHGPo7SlXY60vJeqb7wnjQqgFcjiVXIduorAaNgA2cs Zlrz2fU/7lFM1dBreW1ilFA8WQvwh3u0Q8FGidzGmdmm1aE3LKl84sG0SbjJympCoFfF bmu6Xov0Nq4GKdQXUYgg8oGfYGf6mYjASRmRnSEcUp8eua5cAfT63uuU48TZ5VljOpzq eDtTOWKC4RjloMGWdikm4ompDrhHRnY8IXebgKPu6Cz2w3I0poWn2Igj4iJSHe7erTFZ YPDiW+XK6I/txSiM9pcu7FCCcsalA3w89yG8biz2+WtLYsJAh7WP0ezOB9thvSQtlLD3 WWcA== 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=lglnAZcHTUKaafFLGQIo5d2h5FHwPflQUob6dw8EHj8=; b=m4sAdLdSPQNZDwMNMkluT0i7KWPLeJbh8gWo/ndtk6YuE7JsnlTj9c4pnaU7iVjM90 O5Y0xw/3o141kNTFvpTEawuXj3bu8fhxSm0trDi7TlugEGMaGxsywFQnaXiAxwiSNugb /WnCwqdUpuT/KIdtLddrNTCIs2mQR3tf0PhRb4yjG+VzjCZR0NujjZ889mX6U/yNA4Go 0gRFX/xfs48cSHECpazdPpWaIEgU8QBArS8T4T5cG+GQIt6FYuYZdHkhvm/8KO9zj59X er0WKQimG2M8I3+yxRQ2pIRKgOyskCnzXI1/xAudSGzdJePCbGfJf6VruhSYjhEsKICc xEUg== 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 p32si2994973eda.51.2019.09.06.03.46.31; Fri, 06 Sep 2019 03:46:31 -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 A84301F173; Fri, 6 Sep 2019 12:46:29 +0200 (CEST) Received: from inva021.nxp.com (inva021.nxp.com [92.121.34.21]) by dpdk.org (Postfix) with ESMTP id 0672A1F171 for ; Fri, 6 Sep 2019 12:46:27 +0200 (CEST) Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id A040F2002E0; Fri, 6 Sep 2019 12:46:27 +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 6B25D2001FC; Fri, 6 Sep 2019 12:46:25 +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 A2BE1402F0; Fri, 6 Sep 2019 18:46:22 +0800 (SGT) From: Hemant Agrawal To: dev@dpdk.org Cc: jerinj@marvell.com, abhinandan.gujjar@intel.com, Hemant Agrawal Date: Fri, 6 Sep 2019 16:14:34 +0530 Message-Id: <20190906104434.15467-1-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.17.1 X-Virus-Scanned: ClamAV using ClamSMTP Subject: [dpdk-dev] [PATCH] test/event_crypto: no service core for HW options 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" If HW support is available, service core shall not come into play by default. This shall be for both FWD/NEW modes. Signed-off-by: Hemant Agrawal --- app/test/test_event_crypto_adapter.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) -- 2.17.1 Acked-by: abhinandan.gujjar@intel.com diff --git a/app/test/test_event_crypto_adapter.c b/app/test/test_event_crypto_adapter.c index e7bf80978..ed8a58d32 100644 --- a/app/test/test_event_crypto_adapter.c +++ b/app/test/test_event_crypto_adapter.c @@ -293,7 +293,8 @@ test_sessionless_with_op_forward_mode(void) ret = rte_event_crypto_adapter_caps_get(TEST_ADAPTER_ID, evdev, &cap); TEST_ASSERT_SUCCESS(ret, "Failed to get adapter capabilities\n"); - if (!(cap & RTE_EVENT_CRYPTO_ADAPTER_CAP_INTERNAL_PORT_OP_FWD)) + if (!(cap & RTE_EVENT_CRYPTO_ADAPTER_CAP_INTERNAL_PORT_OP_FWD) && + !(cap & RTE_EVENT_CRYPTO_ADAPTER_CAP_INTERNAL_PORT_OP_NEW)) map_adapter_service_core(); TEST_ASSERT_SUCCESS(rte_event_crypto_adapter_start(TEST_ADAPTER_ID), @@ -313,7 +314,8 @@ test_session_with_op_forward_mode(void) ret = rte_event_crypto_adapter_caps_get(TEST_ADAPTER_ID, evdev, &cap); TEST_ASSERT_SUCCESS(ret, "Failed to get adapter capabilities\n"); - if (!(cap & RTE_EVENT_CRYPTO_ADAPTER_CAP_INTERNAL_PORT_OP_FWD)) + if (!(cap & RTE_EVENT_CRYPTO_ADAPTER_CAP_INTERNAL_PORT_OP_FWD) && + !(cap & RTE_EVENT_CRYPTO_ADAPTER_CAP_INTERNAL_PORT_OP_NEW)) map_adapter_service_core(); TEST_ASSERT_SUCCESS(rte_event_crypto_adapter_start(TEST_ADAPTER_ID @@ -441,7 +443,7 @@ test_sessionless_with_op_new_mode(void) ret = rte_event_crypto_adapter_caps_get(TEST_ADAPTER_ID, evdev, &cap); TEST_ASSERT_SUCCESS(ret, "Failed to get adapter capabilities\n"); - if (!(cap & RTE_EVENT_CRYPTO_ADAPTER_CAP_INTERNAL_PORT_OP_FWD) || + if (!(cap & RTE_EVENT_CRYPTO_ADAPTER_CAP_INTERNAL_PORT_OP_FWD) && !(cap & RTE_EVENT_CRYPTO_ADAPTER_CAP_INTERNAL_PORT_OP_NEW)) map_adapter_service_core(); @@ -463,7 +465,7 @@ test_session_with_op_new_mode(void) ret = rte_event_crypto_adapter_caps_get(TEST_ADAPTER_ID, evdev, &cap); TEST_ASSERT_SUCCESS(ret, "Failed to get adapter capabilities\n"); - if (!(cap & RTE_EVENT_CRYPTO_ADAPTER_CAP_INTERNAL_PORT_OP_FWD) || + if (!(cap & RTE_EVENT_CRYPTO_ADAPTER_CAP_INTERNAL_PORT_OP_FWD) && !(cap & RTE_EVENT_CRYPTO_ADAPTER_CAP_INTERNAL_PORT_OP_NEW)) map_adapter_service_core();