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 B8669A04B1; Mon, 5 Oct 2020 21:31:20 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id E4ACC1B9E0; Mon, 5 Oct 2020 21:30:22 +0200 (CEST) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id A90F81B74B for ; Mon, 5 Oct 2020 21:30:18 +0200 (CEST) IronPort-SDR: NjTt/8Xzx0XcAKzV0mnUzmRTeEZ37craBQEl06Sw5FfPlAigh79LzpBZKBmt03V+JNNJF4QEvN Oy4w3TfZGayA== X-IronPort-AV: E=McAfee;i="6000,8403,9765"; a="181652998" X-IronPort-AV: E=Sophos;i="5.77,340,1596524400"; d="scan'208";a="181652998" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Oct 2020 12:28:27 -0700 IronPort-SDR: ChoeST+d5lSnLQD1EyPFgtQWJbBwk1YptIEz2PsIqjIJdGMt3UJGC3Ok9AUCaOZQ1TrgSacSkS pie9qG5fwMgQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.77,340,1596524400"; d="scan'208";a="526627302" Received: from sivswdev08.ir.intel.com ([10.237.217.47]) by orsmga005.jf.intel.com with ESMTP; 05 Oct 2020 11:47:03 -0700 From: Konstantin Ananyev To: dev@dpdk.org Cc: jerinj@marvell.com, ruifeng.wang@arm.com, vladimir.medvedkin@intel.com, Konstantin Ananyev Date: Mon, 5 Oct 2020 19:45:25 +0100 Message-Id: <20201005184526.7465-14-konstantin.ananyev@intel.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20201005184526.7465-1-konstantin.ananyev@intel.com> References: <20200915165025.543-1-konstantin.ananyev@intel.com> <20201005184526.7465-1-konstantin.ananyev@intel.com> Subject: [dpdk-dev] [PATCH v3 13/14] test/acl: add AVX512 classify support 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" Add AVX512 classify to the test coverage. Signed-off-by: Konstantin Ananyev --- app/test/test_acl.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/test/test_acl.c b/app/test/test_acl.c index 333b347579..5b32347954 100644 --- a/app/test/test_acl.c +++ b/app/test/test_acl.c @@ -278,8 +278,8 @@ test_classify_alg(struct rte_acl_ctx *acx, struct ipv4_7tuple test_data[], /* set given classify alg, skip test if alg is not supported */ ret = rte_acl_set_ctx_classify(acx, alg); - if (ret == -ENOTSUP) - return 0; + if (ret != 0) + return (ret == -ENOTSUP) ? 0 : ret; /** * these will run quite a few times, it's necessary to test code paths @@ -341,6 +341,8 @@ test_classify_run(struct rte_acl_ctx *acx, struct ipv4_7tuple test_data[], RTE_ACL_CLASSIFY_AVX2, RTE_ACL_CLASSIFY_NEON, RTE_ACL_CLASSIFY_ALTIVEC, + RTE_ACL_CLASSIFY_AVX512X16, + RTE_ACL_CLASSIFY_AVX512X32, }; /* swap all bytes in the data to network order */ -- 2.17.1