From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <dev-bounces@dpdk.org>
Received: from dpdk.org (dpdk.org [92.243.14.124])
	by inbox.dpdk.org (Postfix) with ESMTP id 9A5F4A04C7;
	Tue, 15 Sep 2020 18:52:49 +0200 (CEST)
Received: from [92.243.14.124] (localhost [127.0.0.1])
	by dpdk.org (Postfix) with ESMTP id 696901C1BF;
	Tue, 15 Sep 2020 18:51:30 +0200 (CEST)
Received: from mga02.intel.com (mga02.intel.com [134.134.136.20])
 by dpdk.org (Postfix) with ESMTP id 318231C12B
 for <dev@dpdk.org>; Tue, 15 Sep 2020 18:51:28 +0200 (CEST)
IronPort-SDR: fFdrmwHMY8yfe4VQDz2NWPYO0OwwCtBYrVFx46QqEAus6qT822O8fGwB5QQ9mNKIxsAoB1mtf6
 ePDJgdcU6qmw==
X-IronPort-AV: E=McAfee;i="6000,8403,9745"; a="146995909"
X-IronPort-AV: E=Sophos;i="5.76,430,1592895600"; d="scan'208";a="146995909"
X-Amp-Result: SKIPPED(no attachment in message)
X-Amp-File-Uploaded: False
Received: from orsmga006.jf.intel.com ([10.7.209.51])
 by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;
 15 Sep 2020 09:51:27 -0700
IronPort-SDR: DpPgxqruy5VS7jxRXZ5zIWYmCZHfIXfPh2bc05ocOzVgO+yztWJSMlAXIcjWts4rTssGI36YcG
 nuaWPfMUO+eQ==
X-ExtLoop1: 1
X-IronPort-AV: E=Sophos;i="5.76,430,1592895600"; d="scan'208";a="306709574"
Received: from sivswdev08.ir.intel.com ([10.237.217.47])
 by orsmga006.jf.intel.com with ESMTP; 15 Sep 2020 09:51:26 -0700
From: Konstantin Ananyev <konstantin.ananyev@intel.com>
To: dev@dpdk.org
Cc: jerinj@marvell.com, ruifeng.wang@arm.com, vladimir.medvedkin@intel.com,
 Konstantin Ananyev <konstantin.ananyev@intel.com>
Date: Tue, 15 Sep 2020 17:50:24 +0100
Message-Id: <20200915165025.543-12-konstantin.ananyev@intel.com>
X-Mailer: git-send-email 2.18.0
In-Reply-To: <20200915165025.543-1-konstantin.ananyev@intel.com>
References: <20200807162829.11690-1-konstantin.ananyev@intel.com>
 <20200915165025.543-1-konstantin.ananyev@intel.com>
Subject: [dpdk-dev] [PATCH v2 11/12] 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 <dev.dpdk.org>
List-Unsubscribe: <https://mails.dpdk.org/options/dev>,
 <mailto:dev-request@dpdk.org?subject=unsubscribe>
List-Archive: <http://mails.dpdk.org/archives/dev/>
List-Post: <mailto:dev@dpdk.org>
List-Help: <mailto:dev-request@dpdk.org?subject=help>
List-Subscribe: <https://mails.dpdk.org/listinfo/dev>,
 <mailto:dev-request@dpdk.org?subject=subscribe>
Errors-To: dev-bounces@dpdk.org
Sender: "dev" <dev-bounces@dpdk.org>

Add AVX512 classify to the test coverage.

Signed-off-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
---
 app/test/test_acl.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/app/test/test_acl.c b/app/test/test_acl.c
index 333b34757..11d69d2d5 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,7 @@ 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_AVX512,
 	};
 
 	/* swap all bytes in the data to network order */
-- 
2.17.1