From patchwork Fri Sep 22 09:09:23 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Varalakshmi S X-Patchwork-Id: 131821 Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 7BF6C42616; Fri, 22 Sep 2023 10:11:44 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 50C1140150; Fri, 22 Sep 2023 10:11:44 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.93]) by mails.dpdk.org (Postfix) with ESMTP id 287B44013F for ; Fri, 22 Sep 2023 10:11:42 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1695370302; x=1726906302; h=from:to:cc:subject:date:message-id; bh=aVMTZ8Z9vjzCtTECO83nSQun5jlMAkSrhbeZNIs8zf4=; b=LkXEKikFMwvAjnR89AMx6kYV+DIHAH43aYM3leuewZ37EniLc/O8M4fi iBvT4Wq4F5Sp5iuBPoDwa1Tfe8UmISAGxDKGJoPrZ6Yi6DdwJylIHichz /Jcz0jKv+NLG61fdqQ22LREb1ipbm3oPrvYSrzaqIy3sQxPZLa9NcGtAb MRrfPKRchzwMfnamtKDZufVsL1IXdiT10ehQQCpD/54ziuPMWNyvVZc4i z48J0EVifqzEh3H8eHeO6RcdMoynIofBM6hv5j4L5gLsmw4qo2vKH++HS 0Z/sBJRDH8I/YFi1bKWKdLqPesi0psO0s00gA5bhPA6dnDh4tivvGNWLP A==; X-IronPort-AV: E=McAfee;i="6600,9927,10840"; a="378062788" X-IronPort-AV: E=Sophos;i="6.03,167,1694761200"; d="scan'208";a="378062788" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Sep 2023 01:11:41 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10840"; a="1078280126" X-IronPort-AV: E=Sophos;i="6.03,167,1694761200"; d="scan'208";a="1078280126" Received: from dpdk-yaobing-purely147.sh.intel.com (HELO dpdk-yaobing-purely147.icx.intel.com) ([10.67.115.187]) by fmsmga005-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Sep 2023 01:11:40 -0700 From: svaralak To: dts@dpdk.org Cc: varalakshmi.s@intel.com Subject: [PATCH V1] tests/TestSuite_ipsec_gw_cryptodev_func.py tests/TestSuite_crypto_perf_cryptodev_perf.py: Modified to accomodate qat_legacy_capa flag Date: Fri, 22 Sep 2023 17:09:23 +0800 Message-Id: <20230922090923.96258-1-varalakshmi.s@intel.com> X-Mailer: git-send-email 2.17.1 X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.29 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 Signed-off-by: svaralak --- tests/TestSuite_crypto_perf_cryptodev_perf.py | 13 ++++++++++++- tests/TestSuite_ipsec_gw_cryptodev_func.py | 5 +++++ 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/tests/TestSuite_crypto_perf_cryptodev_perf.py b/tests/TestSuite_crypto_perf_cryptodev_perf.py index 0531b9c6..7c4f8de6 100644 --- a/tests/TestSuite_crypto_perf_cryptodev_perf.py +++ b/tests/TestSuite_crypto_perf_cryptodev_perf.py @@ -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: diff --git a/tests/TestSuite_ipsec_gw_cryptodev_func.py b/tests/TestSuite_ipsec_gw_cryptodev_func.py index d9f6f626..fe4222d5 100644 --- a/tests/TestSuite_ipsec_gw_cryptodev_func.py +++ b/tests/TestSuite_ipsec_gw_cryptodev_func.py @@ -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":