[V2] tests/TestSuite_ipsec_gw_cryptodev_func.py tests/TestSuite_crypto_perf_cryptodev_perf.py: Modified to accomodate qat_legacy_capa flag
Commit Message
Fix the script to include qat_legacy_capa flag with QAT devices.
Signed-off-by: svaralak <varalakshmi.s@intel.com>
---
tests/TestSuite_crypto_perf_cryptodev_perf.py | 13 ++++++++++++-
tests/TestSuite_ipsec_gw_cryptodev_func.py | 5 +++++
2 files changed, 17 insertions(+), 1 deletion(-)
@@ -349,6 +349,11 @@ class TestCryptoPerfCryptodevPerf(TestCase):
dev = "crypto_aesni_mb"
elif self.get_case_cfg()["devtype"] == "crypto_qat":
w = cc.get_qat_devices(self, cpm_num=1, num=num)
+ legacy_capa_flag=",qat_legacy_capa=1"
+ i = 0
+ for s in w:
+ w[i] = s+legacy_capa_flag
+ i = i + 1
device["a"] = " -a ".join(w)
device["vdev"] = None
elif self.get_case_cfg()["devtype"] == "crypto_openssl":
@@ -364,6 +369,7 @@ class TestCryptoPerfCryptodevPerf(TestCase):
elif self.get_case_cfg()["devtype"] == "crypto_scheduler":
dev = "crypto_scheduler"
w = cc.get_qat_devices(self, cpm_num=3, num=num * 3)
+
if not w:
return {}
vdev_list = []
@@ -371,7 +377,12 @@ class TestCryptoPerfCryptodevPerf(TestCase):
vdev = "{}{},worker={}_qat_sym,worker={}_qat_sym,worker={}_qat_sym,mode=round-robin".format(
dev, i, w[i * 3], w[i * 3 + 1], w[i * 3 + 2]
)
- vdev_list.append(vdev)
+ vdev_list.append(vdev)
+ legacy_capa_flag=",qat_legacy_capa=1"
+ i = 0
+ for s in w:
+ w[i] = s+legacy_capa_flag
+ i = i + 1
device["a"] = " -a ".join(w)
device["vdev"] = " --vdev ".join(vdev_list)
else:
@@ -225,6 +225,11 @@ class TestIPsecGwCryptodevFunc(TestCase):
dev = "crypto_aesni_mb"
elif self.get_case_cfg()["devtype"] == "crypto_qat":
w = cc.get_qat_devices(self, cpm_num=1, num=num)
+ legacy_capa_flag=",qat_legacy_capa=1"
+ i = 0
+ for s in w:
+ w[i] = s+legacy_capa_flag
+ i = i + 1
device["a"] = " -a ".join(w)
device["vdev"] = None
elif self.get_case_cfg()["devtype"] == "crypto_openssl":