From: Xinfeng Zhao <xinfengx.zhao@intel.com>
To: dts@dpdk.org
Cc: Xinfeng Zhao <xinfengx.zhao@intel.com>
Subject: [dts] [PATCH V1 2/3] tests: modify cryptodev suites to avoid Reaching the maximum number of crypto devices
Date: Thu, 6 Jun 2019 08:23:04 +0800 [thread overview]
Message-ID: <1559780585-160319-2-git-send-email-xinfengx.zhao@intel.com> (raw)
In-Reply-To: <1559780585-160319-1-git-send-email-xinfengx.zhao@intel.com>
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@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
next prev parent reply other threads:[~2019-06-06 8:33 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-06-06 0:23 [dts] [PATCH V1 1/3] tests: add new case in cryptodev unit-test Xinfeng Zhao
2019-06-06 0:23 ` Xinfeng Zhao [this message]
2019-06-06 0:23 ` [dts] [PATCH V1 3/3] conf: modify the cryptodev conf and specify the qat crypto device Xinfeng Zhao
2019-06-11 7:10 ` [dts] [PATCH V1 1/3] tests: add new case in cryptodev unit-test Zhao, XinfengX
2019-06-12 6:31 ` Tu, Lijuan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1559780585-160319-2-git-send-email-xinfengx.zhao@intel.com \
--to=xinfengx.zhao@intel.com \
--cc=dts@dpdk.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).