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 510EAA050D for ; Thu, 14 Apr 2022 19:24:09 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 335C74067C; Thu, 14 Apr 2022 19:24:09 +0200 (CEST) Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by mails.dpdk.org (Postfix) with ESMTP id 662054067C for ; Thu, 14 Apr 2022 19:24:08 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1649957048; x=1681493048; h=from:to:cc:subject:date:message-id; bh=Z94WMztGQGRWQy2G8OpibmJtIemHoqEsqgy7hKi74z0=; b=gXLQ1lCrDL6gaw8ln/Wzq09Qtq/JhW2Ge5g+LoRkqqOSBnKcdfHuIRN7 /HQNRSCZstq1dSUx5FHzhLTvgrYpZ3e5qUTXnMdz4zwPQhBc+cDFLWtAH t21YLW4JmmIJbDmIJ7WD7NExWO8j4rM/gXNS+46iqotn/dZlAB7oB/Xe1 ZVS46TdkJDteqEBSL6yXrhgQGZfV8pp/RIdP2gqMLiI1Hw8jOmIgB9av4 QUVHSg4G8KtkyDwvSeoVDYONw877/m6Oih7/2q+w4CCZ0ve3tlmsBELJ6 KRR/W6h5eg80PPilx8pTR/AwD798y/8KgaiEcdoDY5S1PyURLz1gzptJy w==; X-IronPort-AV: E=McAfee;i="6400,9594,10317"; a="260581853" X-IronPort-AV: E=Sophos;i="5.90,260,1643702400"; d="scan'208";a="260581853" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Apr 2022 10:24:03 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.90,260,1643702400"; d="scan'208";a="526995927" Received: from silpixa00400465.ir.intel.com ([10.55.128.22]) by orsmga002.jf.intel.com with ESMTP; 14 Apr 2022 10:24:01 -0700 From: Kai Ji To: stable@dpdk.org Cc: ktraynor@redhat.com, kai.ji@intel.com, hemant.agrawal@nxp.com Subject: [PATCH 21.11.1 v1] test/crypto: skip oop test for raw api Date: Fri, 15 Apr 2022 01:23:53 +0800 Message-Id: <20220414172353.19105-1-kai.ji@intel.com> X-Mailer: git-send-email 2.17.1 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 Add in api test type check to skip unsupported aead OOP testcase in raw API test. Fixes: cd8166c28cd1 ("test/crypto: add raw API test for dpaax") Cc: hemant.agrawal@nxp.com Signed-off-by: Kai Ji Tested-by: Poczatek, Jakub --- 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 16431efc88..4eedc8e198 100644 --- a/app/test/test_cryptodev.c +++ b/app/test/test_cryptodev.c @@ -10547,9 +10547,16 @@ test_authenticated_encryption_oop(const struct aead_test_data *tdata) rte_cryptodev_info_get(ts_params->valid_devs[0], &dev_info); uint64_t feat_flags = dev_info.feature_flags; + /* not supported with CPU crypto and raw data-path APIs*/ + if (gbl_action_type == RTE_SECURITY_ACTION_TYPE_CPU_CRYPTO || + global_api_test_type == CRYPTODEV_RAW_API_TEST) + return TEST_SKIPPED; + if ((global_api_test_type == CRYPTODEV_RAW_API_TEST) && - (!(feat_flags & RTE_CRYPTODEV_FF_SYM_RAW_DP))) + (!(feat_flags & RTE_CRYPTODEV_FF_SYM_RAW_DP))) { + printf("Device does not support RAW data-path APIs.\n"); return TEST_SKIPPED; + } /* not supported with CPU crypto */ if (gbl_action_type == RTE_SECURITY_ACTION_TYPE_CPU_CRYPTO) -- 2.17.1