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 50CB1A2EDB for ; Fri, 6 Sep 2019 12:46:30 +0200 (CEST) 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(-) 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(); -- 2.17.1