From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by dpdk.space (Postfix) with ESMTP id 33ADAA0096 for ; Thu, 6 Jun 2019 10:33:26 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 287B61B9AB; Thu, 6 Jun 2019 10:33:26 +0200 (CEST) Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by dpdk.org (Postfix) with ESMTP id AFB231B9A5 for ; Thu, 6 Jun 2019 10:33:24 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 06 Jun 2019 01:33:24 -0700 X-ExtLoop1: 1 Received: from purley-s2600stq.sh.intel.com ([10.67.110.242]) by orsmga002.jf.intel.com with ESMTP; 06 Jun 2019 01:33:23 -0700 From: Xinfeng Zhao To: dts@dpdk.org Cc: Xinfeng Zhao Date: Thu, 6 Jun 2019 08:23:04 +0800 Message-Id: <1559780585-160319-2-git-send-email-xinfengx.zhao@intel.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1559780585-160319-1-git-send-email-xinfengx.zhao@intel.com> References: <1559780585-160319-1-git-send-email-xinfengx.zhao@intel.com> Subject: [dts] [PATCH V1 2/3] tests: modify cryptodev suites to avoid Reaching the maximum number of crypto devices X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: test suite reviews and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dts-bounces@dpdk.org Sender: "dts" enable CONFIG_RTE_LIBRTE_PMD_QAT_ASYM in common_base, and an error was found "Reached maximum number of crypto devices", so cryptodev case need specify the crypto devices to avoid the error Signed-off-by: Xinfeng Zhao --- tests/TestSuite_crypto_perf_cryptodev_perf.py | 12 ++++++------ tests/TestSuite_ipsec_gw_cryptodev_func.py | 2 +- tests/TestSuite_l2fwd_cryptodev_func.py | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/tests/TestSuite_crypto_perf_cryptodev_perf.py b/tests/TestSuite_crypto_perf_cryptodev_perf.py index f7668e6..38b959f 100644 --- a/tests/TestSuite_crypto_perf_cryptodev_perf.py +++ b/tests/TestSuite_crypto_perf_cryptodev_perf.py @@ -106,7 +106,7 @@ class PerfTestsCryptodev(TestCase): if cc.is_test_skip(self): return - eal_opt_str = cc.get_eal_opt_str(self, {"w":None}) + eal_opt_str = cc.get_eal_opt_str(self) crypto_perf_opt_str = self._get_crypto_perf_opt_str() result = self._run_crypto_perf_throughput(eal_opt_str, crypto_perf_opt_str, @@ -128,7 +128,7 @@ class PerfTestsCryptodev(TestCase): if cc.is_test_skip(self): return - eal_opt_str = cc.get_eal_opt_str(self, {"w":None}) + eal_opt_str = cc.get_eal_opt_str(self) crypto_perf_opt_str = self._get_crypto_perf_opt_str() result = self._run_crypto_perf_throughput(eal_opt_str, crypto_perf_opt_str, @@ -150,7 +150,7 @@ class PerfTestsCryptodev(TestCase): if cc.is_test_skip(self): return - eal_opt_str = cc.get_eal_opt_str(self, {"w":None}) + eal_opt_str = cc.get_eal_opt_str(self) crypto_perf_opt_str = self._get_crypto_perf_opt_str() result = self._run_crypto_perf_throughput(eal_opt_str, crypto_perf_opt_str, @@ -172,7 +172,7 @@ class PerfTestsCryptodev(TestCase): if cc.is_test_skip(self): return - eal_opt_str = cc.get_eal_opt_str(self, {"w":None}) + eal_opt_str = cc.get_eal_opt_str(self) crypto_perf_opt_str = self._get_crypto_perf_opt_str() result = self._run_crypto_perf_throughput(eal_opt_str, crypto_perf_opt_str, @@ -194,7 +194,7 @@ class PerfTestsCryptodev(TestCase): if cc.is_test_skip(self): return - eal_opt_str = cc.get_eal_opt_str(self, {"w":None}) + eal_opt_str = cc.get_eal_opt_str(self) crypto_perf_opt_str = self._get_crypto_perf_opt_str() result = self._run_crypto_perf_throughput(eal_opt_str, crypto_perf_opt_str, @@ -216,7 +216,7 @@ class PerfTestsCryptodev(TestCase): if cc.is_test_skip(self): return - eal_opt_str = cc.get_eal_opt_str(self, {"w":None}) + eal_opt_str = cc.get_eal_opt_str(self) crypto_perf_opt_str = self._get_crypto_perf_opt_str() result = self._run_crypto_perf_throughput(eal_opt_str, crypto_perf_opt_str, diff --git a/tests/TestSuite_ipsec_gw_cryptodev_func.py b/tests/TestSuite_ipsec_gw_cryptodev_func.py index dc49577..4004fc9 100644 --- a/tests/TestSuite_ipsec_gw_cryptodev_func.py +++ b/tests/TestSuite_ipsec_gw_cryptodev_func.py @@ -562,7 +562,7 @@ class TestIPsecGW(TestCase): def _execute_ipsec_gw_test(self, ipsec_gw_opt_str): result = True - eal_opt_str = cc.get_eal_opt_str(self) + eal_opt_str = cc.get_eal_opt_str(self, add_port=True) cmd_str = cc.get_dpdk_app_cmd_str(self._app_path, eal_opt_str, ipsec_gw_opt_str) self.logger.info("IPsec-gw cmd: " + cmd_str) diff --git a/tests/TestSuite_l2fwd_cryptodev_func.py b/tests/TestSuite_l2fwd_cryptodev_func.py index 7644f78..7e785dd 100644 --- a/tests/TestSuite_l2fwd_cryptodev_func.py +++ b/tests/TestSuite_l2fwd_cryptodev_func.py @@ -829,7 +829,7 @@ class TestL2fwdCrypto(TestCase): def __test_vector_to_cmd(self, test_vector, core_mask="", port_mask=""): - eal_opt_str = cc.get_eal_opt_str(self) + eal_opt_str = cc.get_eal_opt_str(self, add_port=True) EAL_SEP = " --" PORT_MASK = "" if port_mask == "" else " -p " + port_mask -- 2.7.4