From patchwork Fri Sep 22 09:18:54 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Varalakshmi S X-Patchwork-Id: 131827 X-Patchwork-Delegate: lijuan.tu@intel.com 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 D22E842612; Fri, 22 Sep 2023 10:20:57 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C89B2402E2; Fri, 22 Sep 2023 10:20:57 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.93]) by mails.dpdk.org (Postfix) with ESMTP id 32783402E2 for ; Fri, 22 Sep 2023 10:20:56 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1695370856; x=1726906856; h=from:to:cc:subject:date:message-id; bh=D+J6wIdAlZ8I+1SK3UDm+3b5GjhcjZg9iwt3aBVnqNg=; b=g2KcJWRUAHG4t9nXb9BKMoOjU0qFbsJROi5s3MkKwTPdmSym5bjR5REs l5sa8x8QE5Fmy+/zYuihsmotruiUPsuLW1qD87ZfPSQHTueWOu0Y29O/t rVmmRDbm1/sWT2MuGhxwzliAXWKKKZFmSiA7SM/pQZ+jHIMgbmVbXv5og 1Haac0IS53jnf9V/LGpQ9HjX6VMkM3abO/rKX2XTdByngT7VW7vCAZvdn nTGEdXOYpR+UX0zjGF4ww8M6OtTPBwOH6udqKYGlIOTFlhCHcgudHK1mh E9rUkp3Te4fsoe/V4KqYhCaVmmJYVqUYUKigvgLGJl/6W15CjowV4wKMr g==; X-IronPort-AV: E=McAfee;i="6600,9927,10840"; a="378064185" X-IronPort-AV: E=Sophos;i="6.03,167,1694761200"; d="scan'208";a="378064185" 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:20:55 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10840"; a="1078281413" X-IronPort-AV: E=Sophos;i="6.03,167,1694761200"; d="scan'208";a="1078281413" 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:20:54 -0700 From: svaralak To: dts@dpdk.org Cc: varalakshmi.s@intel.com Subject: [PATCH V2] 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:18:54 +0800 Message-Id: <20230922091854.100135-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 Fix the script to include qat_legacy_capa flag with QAT devices. 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":