From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id A4D8245BC3 for ; Fri, 25 Oct 2024 16:22:58 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 98E6C402E1; Fri, 25 Oct 2024 16:22:58 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.21]) by mails.dpdk.org (Postfix) with ESMTP id D2AC740264; Fri, 25 Oct 2024 16:22:55 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1729866177; x=1761402177; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=qrsqRLrbB4pKDeXjE015Hb+rD4/hw0ZJi+wGyzpX8WY=; b=SnVIPHmiWkaJZWsj4AWjqRJD6rPTMJyC8c0QpiMTCLWq/s+iJjVkw22C 5KCfdhWwN0ViXfmPo8BTX2Gpt31+emGfnMae2HL+JGpy6xzaSb0T3FrDB lpWU15aHvTV4WaZ6WZw0h7t9piq5q/CY+ejgi9NYCYe+81HlIicUSzTPk kIkedEXQ/fyLEmCs9WbhBqPYIcmO3dMeHqTojf0cJH7yQ39Z1h3YQSh6h sZQD+vgbat3XRxvEPNtxOC7QY3gbm6LJ3zr/U+ChhDKxwER/JgVswal2v uZvdL0N58x5ois0HL5CSRhsYTycdXzE+yeVqfuaNGuMV37dOx3ZS9HAE7 g==; X-CSE-ConnectionGUID: orM5M1atTVyvvp2a3wGF8g== X-CSE-MsgGUID: byiBzO/cQ4KhBCH6SeTBHw== X-IronPort-AV: E=McAfee;i="6700,10204,11222"; a="29481538" X-IronPort-AV: E=Sophos;i="6.11,199,1725346800"; d="scan'208";a="29481538" Received: from fmviesa007.fm.intel.com ([10.60.135.147]) by orvoesa113.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Oct 2024 07:22:55 -0700 X-CSE-ConnectionGUID: F9jVZWy3RNSJIFByK+SURA== X-CSE-MsgGUID: lh5LhjL9TZi70vuSp62sZQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.11,232,1725346800"; d="scan'208";a="80575345" Received: from silpixa00400886.ir.intel.com ([10.243.22.139]) by fmviesa007.fm.intel.com with ESMTP; 25 Oct 2024 07:22:53 -0700 From: Brian Dooley To: Akhil Goyal , Fan Zhang Cc: dev@dpdk.org, stable@dpdk.org, pablo.de.lara.guarch@intel.com, Brian Dooley Subject: [PATCH v1] test/crypto: fix synchronous API call Date: Fri, 25 Oct 2024 15:22:51 +0100 Message-Id: <20241025142251.1149785-1-brian.dooley@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org For the synchronous API the enqueue/dequeue burst functions are not called. Skip these tests when calling the synchronous API. Fixes: 4ad17a1c8fb3 ("test/crypto: fix enqueue/dequeue callback case") Cc: stable@dpdk.org Signed-off-by: Brian Dooley --- app/test/test_cryptodev.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/app/test/test_cryptodev.c b/app/test/test_cryptodev.c index 25eef342b0..c647baeee1 100644 --- a/app/test/test_cryptodev.c +++ b/app/test/test_cryptodev.c @@ -2496,7 +2496,8 @@ test_queue_pair_descriptor_count(void) int qp_depth = 0; int i; - RTE_VERIFY(gbl_action_type != RTE_SECURITY_ACTION_TYPE_CPU_CRYPTO); + if (gbl_action_type == RTE_SECURITY_ACTION_TYPE_CPU_CRYPTO) + return TEST_SKIPPED; /* Verify if the queue pair depth API is supported by driver */ qp_depth = rte_cryptodev_qp_depth_used(ts_params->valid_devs[0], 0); @@ -15135,6 +15136,10 @@ test_enq_callback_setup(void) uint16_t qp_id = 0; int j = 0; + /* Skip test if synchronous API is used */ + if (gbl_action_type == RTE_SECURITY_ACTION_TYPE_CPU_CRYPTO) + return TEST_SKIPPED; + /* Verify the crypto capabilities for which enqueue/dequeue is done. */ cap_idx.type = RTE_CRYPTO_SYM_XFORM_AUTH; cap_idx.algo.auth = RTE_CRYPTO_AUTH_NULL; @@ -15256,6 +15261,10 @@ test_deq_callback_setup(void) uint16_t qp_id = 0; int j = 0; + /* Skip test if synchronous API is used */ + if (gbl_action_type == RTE_SECURITY_ACTION_TYPE_CPU_CRYPTO) + return TEST_SKIPPED; + /* Verify the crypto capabilities for which enqueue/dequeue is done. */ cap_idx.type = RTE_CRYPTO_SYM_XFORM_AUTH; cap_idx.algo.auth = RTE_CRYPTO_AUTH_NULL; -- 2.25.1