[dts] [PATCH V1 2/3] tests: modify cryptodev suites to avoid Reaching the maximum number of crypto devices

Xinfeng Zhao xinfengx.zhao at intel.com
Thu Jun 6 02:23:04 CEST 2019


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 <xinfengx.zhao at intel.com>
---
 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



More information about the dts mailing list