From patchwork Sun Jul 16 09:07:45 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jin Ling X-Patchwork-Id: 129545 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 B530142E8A; Sun, 16 Jul 2023 11:08:15 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id AF1D942B8C; Sun, 16 Jul 2023 11:08:15 +0200 (CEST) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by mails.dpdk.org (Postfix) with ESMTP id AC9814013F for ; Sun, 16 Jul 2023 11:08:12 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1689498492; x=1721034492; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=GYVg/ahBvAXvuiMHKp+f45hd25JHL7lGj4GtczJRFYk=; b=iZ2v15AswpY9iE05TpcLNAtTFfvWaM3BX8NZ5iYqyK0IxTaOnBd7O0aw xD21VOVpVCk0rFKgPEX19B1FokTRakCqEgdDE7X9YxDjJOpqMObxix2wN cLwEEzF1KCS0J8iYuZybh5VCyhtRD9xRm177MvpNp8e+FDlnWnt3CONDi AFYZkn/B3V/bvdkJm0t+27+nqvwn3fZTWYotnkh5zBV+MAXtJ9qrVrcqd NPnRVr+pBKjL9P0gRLKxvM4L7lCphRajUkBf/ncXRgIIuCJpFUuJLdh7q OPNEeXEK0YHI1+Ox3XlZkb+AG2xInYMserEDFLSYGWKTiHvBHu6SO/jq4 g==; X-IronPort-AV: E=McAfee;i="6600,9927,10772"; a="350610633" X-IronPort-AV: E=Sophos;i="6.01,210,1684825200"; d="scan'208";a="350610633" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Jul 2023 02:08:11 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10772"; a="788303656" X-IronPort-AV: E=Sophos;i="6.01,210,1684825200"; d="scan'208";a="788303656" Received: from dpdk-lingjin.sh.intel.com ([10.67.114.163]) by fmsmga008.fm.intel.com with ESMTP; 16 Jul 2023 02:08:10 -0700 From: Jin Ling To: dts@dpdk.org Cc: Jin Ling Subject: [DTS][PATCH V1 01/10] conf/crbs.cfg: add parameters Date: Sun, 16 Jul 2023 17:07:45 +0800 Message-Id: <20230716090753.1590148-2-jin.ling@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230716090753.1590148-1-jin.ling@intel.com> References: <20230716090753.1590148-1-jin.ling@intel.com> MIME-Version: 1.0 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 Add parameters to connect mev and acc via serial port Signed-off-by: Jin Ling --- conf/crbs.cfg | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/conf/crbs.cfg b/conf/crbs.cfg index a12e60a4..051c5d9e 100644 --- a/conf/crbs.cfg +++ b/conf/crbs.cfg @@ -19,6 +19,10 @@ dut_user=root dut_passwd= os=linux dut_arch= +dut_acc_port = +dut_acc_baudrate = +dut_imc_port = /dev/ttyUSB2 +dut_imc_baudrate = 460800 tester_ip=xxx.xxx.xxx.xxx tester_passwd= ixia_group= From patchwork Sun Jul 16 09:07:46 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jin Ling X-Patchwork-Id: 129546 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 2B72042E8B; Sun, 16 Jul 2023 11:08:16 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D530342BC9; Sun, 16 Jul 2023 11:08:15 +0200 (CEST) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by mails.dpdk.org (Postfix) with ESMTP id 16E6F40DFD for ; Sun, 16 Jul 2023 11:08:12 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1689498493; x=1721034493; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=2bMpL1QrK4lgda3XwDPcOCZCzsjhRwOc/fhUvD7le94=; b=eHok9rjcqg4c8UupCmbI0+SEJ807zorv8U29makxQPVlr9ulnSoufch8 qcw+egsezC1aUfXSr1sMkGz24sW4jdaC5AL41L+ApJIZFjQUOILP26BgU 50fbSbhGFePs0shmNO3YGnH47oBDKki/tLgFBo8zMj1b3cRvJXmQhgB9b KJWjTkZ8JVpoxcA0sXyJDVrvRHqdiXun+H9YgONIg5kmcNtDFJQOEt8Wk ELjznOCtF112sFmWZlxIT20gaENPHVghl5cdiK+Tf1Z8mFe06N2eEr3Zy el8ZNjt0KessjXNIB91UHbZl9UcYp3jXPbS9WJSs6hamVcy050P5i4LW5 g==; X-IronPort-AV: E=McAfee;i="6600,9927,10772"; a="350610634" X-IronPort-AV: E=Sophos;i="6.01,210,1684825200"; d="scan'208";a="350610634" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Jul 2023 02:08:12 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10772"; a="788303662" X-IronPort-AV: E=Sophos;i="6.01,210,1684825200"; d="scan'208";a="788303662" Received: from dpdk-lingjin.sh.intel.com ([10.67.114.163]) by fmsmga008.fm.intel.com with ESMTP; 16 Jul 2023 02:08:11 -0700 From: Jin Ling To: dts@dpdk.org Cc: Jin Ling Subject: [DTS][PATCH V1 02/10] execution.cfg: add parameters to choose datapath and create vport when running test scripts Date: Sun, 16 Jul 2023 17:07:46 +0800 Message-Id: <20230716090753.1590148-3-jin.ling@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230716090753.1590148-1-jin.ling@intel.com> References: <20230716090753.1590148-1-jin.ling@intel.com> MIME-Version: 1.0 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: Jin Ling --- execution.cfg | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/execution.cfg b/execution.cfg index 1507527c..fcc2cbe7 100644 --- a/execution.cfg +++ b/execution.cfg @@ -6,5 +6,15 @@ build_type=meson test_suites= hello_world, targets= - x86_64-native-linuxapp-gcc + # on acc: + # arm64-intel-linux-gcc + # on host: + x86_64-native-linuxapp-gcc parameters=nic_type=cfg:func=true +# test_mev =True +# test_acc =True +# rx_mode=novector +# # # rx_mode=AVX512 +# queue_model=splitq +# vport=0-1 +# rx_vport=0 \ No newline at end of file From patchwork Sun Jul 16 09:07:47 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jin Ling X-Patchwork-Id: 129547 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 8676F42E8C; Sun, 16 Jul 2023 11:08:16 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 0826B42C54; Sun, 16 Jul 2023 11:08:16 +0200 (CEST) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by mails.dpdk.org (Postfix) with ESMTP id A3F6340DFD for ; Sun, 16 Jul 2023 11:08:13 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1689498493; x=1721034493; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=5abfLNHZOnimwTp9WmVrUtg3okzP2LLTttoOJfrscUU=; b=NUVitiXVH8zn3caCnsJ4/7GYCgAtJ6jlybVLRF1neDOaelhHjEwFsrsO Ku1kVS46/yk9iyCJaEW2T+OquLdG2tg3MG26KWwj5JkqkXcMsl85InJlD jlH26UPIIkpo/pbvnGbMarc3NZFxIfroK4xw5NsetVji8OSnfQ8UbUVTZ J4p1usxQsxSP6AQDCpDIhkoo4qyxoZidwdvpwnjAbkGtAQ6enbBpnZeGV xwxhsIvuncRtcX5J3JCttiHDFodLS+CkHjUhrZw52AC9nO6tXtYPizhYL /M90dxZuLeC/ko1Xtp7gMoTkjBu92nlR9OvNH4hE5vHA8obq15qrTneCZ Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10772"; a="350610635" X-IronPort-AV: E=Sophos;i="6.01,210,1684825200"; d="scan'208";a="350610635" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Jul 2023 02:08:13 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10772"; a="788303669" X-IronPort-AV: E=Sophos;i="6.01,210,1684825200"; d="scan'208";a="788303669" Received: from dpdk-lingjin.sh.intel.com ([10.67.114.163]) by fmsmga008.fm.intel.com with ESMTP; 16 Jul 2023 02:08:12 -0700 From: Jin Ling To: dts@dpdk.org Cc: Jin Ling Subject: [DTS][PATCH V1 03/10] framework/config: save the serial port connection info of imc and acc to the self.crb Date: Sun, 16 Jul 2023 17:07:47 +0800 Message-Id: <20230716090753.1590148-4-jin.ling@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230716090753.1590148-1-jin.ling@intel.com> References: <20230716090753.1590148-1-jin.ling@intel.com> MIME-Version: 1.0 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: Jin Ling --- framework/config.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/framework/config.py b/framework/config.py index 2cd95ff2..cc5d9041 100644 --- a/framework/config.py +++ b/framework/config.py @@ -294,6 +294,16 @@ class CrbsConf(UserConf): crb["pass"] = value elif key == "os": crb["OS"] = value + elif key == "dut_acc_port": + crb["ACC PORT"] = value + elif key == "dut_acc_baudrate": + crb["ACC BAUDRATE"] = value + elif key == "dut_imc_port": + crb["IMC PORT"] = value + elif key == "dut_imc_baudrate": + crb["IMC BAUDRATE"] = value + elif key == "dut_imc_ip": + crb["IMC IP"] = value elif key == "tester_ip": crb["tester IP"] = value elif key == "tester_passwd": From patchwork Sun Jul 16 09:07:48 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jin Ling X-Patchwork-Id: 129548 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 3C3ED42E8A; Sun, 16 Jul 2023 11:08:17 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2F2EA42BB1; Sun, 16 Jul 2023 11:08:17 +0200 (CEST) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by mails.dpdk.org (Postfix) with ESMTP id 0DFA44013F for ; Sun, 16 Jul 2023 11:08:14 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1689498495; x=1721034495; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=bTAGE2q1WxTQfUq33iPyFF+4c01Y2k7x0oIcPQYt/Ek=; b=eRyZxSuln5CGTKZkkyWjCjYt9Q/8mBXi629WDuovtOVjARpZpLMUVulI kVJCT0JNDMt+rklYxMBpnPBPzHiHicp4fxVkEyAJgmppUqWqCskM3PuUC ieWmlPiLsnHlOsYnh94bR1Xin8qAkMhVzIGB+mnrfsBW5wJrutjsmFp1q 5ErlM3SRxTFK1zuqMwACa874cPsGPElvRFBOgQrV5bMCaHKB6AoBtgGei W3IlD97EUBe9xSg1T/HW7oxP3hBppjit5KQo+QXWoQ6vnlriZxWQ4bwDN 3Uw9QaCmnNtp2OqvOyQITvoo5lyvFJ/JS03IrlXFW3GF2FXHHDlv6Uv1i g==; X-IronPort-AV: E=McAfee;i="6600,9927,10772"; a="350610637" X-IronPort-AV: E=Sophos;i="6.01,210,1684825200"; d="scan'208";a="350610637" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Jul 2023 02:08:14 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10772"; a="788303676" X-IronPort-AV: E=Sophos;i="6.01,210,1684825200"; d="scan'208";a="788303676" Received: from dpdk-lingjin.sh.intel.com ([10.67.114.163]) by fmsmga008.fm.intel.com with ESMTP; 16 Jul 2023 02:08:13 -0700 From: Jin Ling To: dts@dpdk.org Cc: Jin Ling Subject: [DTS][PATCH V1 04/10] framework/crb:modify code when pexpect contains '#', replace '#' with 'mev-acc' Date: Sun, 16 Jul 2023 17:07:48 +0800 Message-Id: <20230716090753.1590148-5-jin.ling@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230716090753.1590148-1-jin.ling@intel.com> References: <20230716090753.1590148-1-jin.ling@intel.com> MIME-Version: 1.0 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: Jin Ling --- framework/crb.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/framework/crb.py b/framework/crb.py index 9e3b0a58..0cd95553 100644 --- a/framework/crb.py +++ b/framework/crb.py @@ -103,6 +103,12 @@ class Crb(object): if trim_whitespace: expected = expected.strip() + try: + if "#" in cmds and self.acc_test_session !=None: + expected = "mev-acc" + except: + pass + # sometimes there will be no alt_session like VM dut if alt_session and self.alt_session: return self.alt_session.session.send_expect(cmds, expected, timeout, verify) From patchwork Sun Jul 16 09:07:49 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jin Ling X-Patchwork-Id: 129549 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 9B4CD42E8B; Sun, 16 Jul 2023 11:08:17 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 55C7F42D16; Sun, 16 Jul 2023 11:08:17 +0200 (CEST) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by mails.dpdk.org (Postfix) with ESMTP id A68544013F for ; Sun, 16 Jul 2023 11:08:15 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1689498495; x=1721034495; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=8Ltvth1QH078T/kD9k7AHSTZc7oR0P7PKIWIUYgeNg0=; b=JEBw1AGiB6IkUMBPPORuw4RQ3BuG48uSN9kgYradqMviDfdzG4o9GVmh pF++x47N0EQYhzK8cu2/oKf1VxZ2ggfIA7UtWj0WB6r/2WCc+G0TDGrPL 5fFPbNa77AWB5+yDlK0nsPJ7ZeJHMpxXyC3MCNz9OzSXadhRg1/k65CUD dthJOBa/M3cCMCosSwrsfx3HAxKaFVmBX8wMO3D1TAq0I5sd5SFFsPVqx g/cGbPzAYvVZlRqW17kp+fBwDBUaj9UWkD+RWpP4niOmNJ5+bm+DoVTQT WnxDp80d/RuB0KD+Nx53r1UHfx4doCyO4bLiowKkxEjGqESa/foUvTBPK Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10772"; a="350610639" X-IronPort-AV: E=Sophos;i="6.01,210,1684825200"; d="scan'208";a="350610639" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Jul 2023 02:08:15 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10772"; a="788303683" X-IronPort-AV: E=Sophos;i="6.01,210,1684825200"; d="scan'208";a="788303683" Received: from dpdk-lingjin.sh.intel.com ([10.67.114.163]) by fmsmga008.fm.intel.com with ESMTP; 16 Jul 2023 02:08:14 -0700 From: Jin Ling To: dts@dpdk.org Cc: Jin Ling Subject: [DTS][PATCH V1 05/10] framework/dts: add global variables Date: Sun, 16 Jul 2023 17:07:49 +0800 Message-Id: <20230716090753.1590148-6-jin.ling@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230716090753.1590148-1-jin.ling@intel.com> References: <20230716090753.1590148-1-jin.ling@intel.com> MIME-Version: 1.0 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 add'test_mev','test_acc','queue_model','vport','rx_vport' to config datapath and vport when executing cases. Signed-off-by: Jin Ling --- framework/dts.py | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/framework/dts.py b/framework/dts.py index f540256d..45aa632d 100644 --- a/framework/dts.py +++ b/framework/dts.py @@ -145,10 +145,33 @@ def dts_parse_config(config, section): dcf_mode = config.get(section, "dcf_mode").strip().lower() except: dcf_mode = "" + try: + test_mev = config.get(section, "test_mev").strip().lower() + except: + test_mev="" + try: + test_acc = config.get(section, "test_acc").strip().lower() + except: + test_acc="" + try : + queue_model = config.get(section, "queue_model").strip().lower() + except: + queue_model = "" + try : + vport = config.get(section, "vport").strip().lower() + except: + vport = "" + try : + rx_vport = config.get(section, "rx_vport").strip().lower() + except: + rx_vport = "0" settings.save_global_setting(settings.DPDK_RXMODE_SETTING, rx_mode) settings.save_global_setting(settings.DPDK_DCFMODE_SETTING, dcf_mode) - + settings.save_global_setting(settings.DPDK_QUEUE_MODEL_SETTING, queue_model) + settings.save_global_setting(settings.DPDK_VPORT_SETTING, vport) + settings.save_global_setting(settings.DPDK_RX_VPORT_SETTING, rx_vport) + settings.save_global_setting(settings.DPDK_TEST_MEV_SETTING, test_mev) suite_list_dedup = {} ## suite_list_dedup[suite_name] := { True | Set | ... } ## True := All Cases to Run From patchwork Sun Jul 16 09:07:50 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jin Ling X-Patchwork-Id: 129550 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 8430B42E8A; Sun, 16 Jul 2023 11:08:18 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7DA6640DFD; Sun, 16 Jul 2023 11:08:18 +0200 (CEST) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by mails.dpdk.org (Postfix) with ESMTP id D85374013F for ; Sun, 16 Jul 2023 11:08:16 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1689498497; x=1721034497; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=VyyktF3SvfD4f/ioxgW/ngbaNOgrFd0O9u0mYkPeYqw=; b=XYugOGA9GMVX9dLAHacpNahcIPtks7B/AQH/DYwKqFeaJyHPdw6gHce+ 4vKZVVhlyPA+VW5S/wyk9xE6OvEwrzMCp8dCuIjLLRMT/cD77UGtuHETe ms+sRWHkqSoWgYZpLPzbOdnYcCfNiR/V/ppHRZ1hcj5aYvkh3NX1ire5/ JPzEwzI543E9GtmJ7mycNweohjZvemlX7SGbIvgKwZS7GK0LvZB0jdurk pasiu+jDOhBiAxCLGFrEI8OEPSGNs19Vav8GpJ/HA/IbL5Dt8QlMJVA0e 8uJrgkn0L12NhdVOo1uVJBwIzMr+hBw+sW8O7PVYyfbT88+bfjVeCqF5P A==; X-IronPort-AV: E=McAfee;i="6600,9927,10772"; a="350610641" X-IronPort-AV: E=Sophos;i="6.01,210,1684825200"; d="scan'208";a="350610641" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Jul 2023 02:08:16 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10772"; a="788303687" X-IronPort-AV: E=Sophos;i="6.01,210,1684825200"; d="scan'208";a="788303687" Received: from dpdk-lingjin.sh.intel.com ([10.67.114.163]) by fmsmga008.fm.intel.com with ESMTP; 16 Jul 2023 02:08:15 -0700 From: Jin Ling To: dts@dpdk.org Cc: Jin Ling Subject: [DTS][PATCH V1 06/10] framework/dut: add new functions to set up test mev env Date: Sun, 16 Jul 2023 17:07:50 +0800 Message-Id: <20230716090753.1590148-7-jin.ling@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230716090753.1590148-1-jin.ling@intel.com> References: <20230716090753.1590148-1-jin.ling@intel.com> MIME-Version: 1.0 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 will set up the test env of mev when creating a dut according the global var 'test_mev'. Signed-off-by: Jin Ling --- framework/dut.py | 121 +++++++++++++++++++++++++++++++++++++++++++---- 1 file changed, 113 insertions(+), 8 deletions(-) diff --git a/framework/dut.py b/framework/dut.py index 0adb2786..8a7884f0 100644 --- a/framework/dut.py +++ b/framework/dut.py @@ -6,6 +6,7 @@ import os import re import threading import time +import copy from typing import Dict, List, Optional, Union from uuid import uuid4 @@ -15,11 +16,13 @@ from nics.net_device import GetNicObj from .config import AppNameConf, PortConf from .crb import Crb from .exception import ParameterInvalidException -from .settings import LOG_NAME_SEP, NICS +from .settings import LOG_NAME_SEP, NICS,DPDK_TEST_MEV_SETTING,\ + DPDK_QUEUE_MODEL_SETTING,DPDK_VPORT_SETTING,DPDK_RX_VPORT_SETTING from .ssh_connection import SSHConnection from .test_result import ResultTable from .utils import RED, remove_old_rsa_key from .virt_resource import VirtResource +from .logger import getLogger class Dut(Crb): @@ -62,7 +65,10 @@ class Dut(Crb): self.apps_name = {} self.dpdk_version = "" self.nic = None - + self.test_mev = settings.load_global_setting(DPDK_TEST_MEV_SETTING).lower() + # self.test_acc = settings.load_global_setting(DPDK_TEST_ACC_SETTING).lower() + if self.test_mev=="true": + self.set_up_mev_test_env() def filter_cores_from_crb_cfg(self): # get core list from crbs.cfg core_list = [] @@ -327,11 +333,13 @@ class Dut(Crb): self.load_portconf() self.mount_procfs() # auto detect network topology - self.map_available_ports() + # self.map_available_ports() # disable tester port ipv6 self.disable_tester_ipv6() self.get_nic_configurations() - + self.get_mev_nic_configurations() + # auto detect network topology + self.map_available_ports() # print latest ports_info for port_info in self.ports_info: self.logger.info(port_info) @@ -354,6 +362,24 @@ class Dut(Crb): if self.nic.default_driver == "ice": self.get_nic_pkg(retry_times) + def get_mev_nic_configurations(self): + if self.test_mev=="true": + self.vport=settings.load_global_setting(DPDK_VPORT_SETTING).lower() + try: + vport = self.vport.split("-") + vport = list(range(int(vport[0]),int(vport[1])+1)) + except: + vport = [int(self.vport),] + + if len(vport) > 1 : + for i in range(len(vport)-1): + dut_port_info = copy.copy(self.ports_info[0]) + tester_port_info = copy.copy(self.tester.ports_info[0]) + dut_port_info["mac"] = self.ports_info[0]["mac"].replace("0",str(i+1),2) + self.ports_info.append(dut_port_info) + self.tester.ports_info.append(tester_port_info) + # self.port_info[i+1]["pci"] = "" + def get_nic_pkg(self, retry_times=3): self.nic.pkg = self.nic.get_nic_pkg() while not self.nic.pkg.get("type") and retry_times > 0: @@ -1379,9 +1405,65 @@ class Dut(Crb): Recover all resource before crb exit """ self.enable_tester_ipv6() + try: + self.bak_session.send_expect("pkill minicom","#") + except: + pass + self.close() self.close() self.logger.logger_exit() - + + def create_imc_test_session(self): + self.imc_test_session = SSHConnection(host=self.crb["section"],session_name="imc",username="root",password="tester") + self.imc_test_session.init_log(getLogger("dut_imc_session")) + self.imc_test_session.send_expect("export TERM=linux-c-nc","#") + out = self.imc_test_session.send_command(f"sudo minicom -D {self.crb['IMC PORT']} -b {self.crb['IMC BAUDRATE']} -w") + while "root@mev-imc" not in out: + if "locked" in out: + self.bak_session.send_command("ps -ef | grep 'minicom -D %s' | grep -v grep | awk '{print $2}' | xargs kill -9"%(self.crb['IMC PORT'])) + out = self.imc_test_session.send_command(f"sudo minicom -D {self.crb['IMC PORT']} -b {self.crb['IMC BAUDRATE']}") + elif "login" in out: + out = self.imc_test_session.send_command("root") + else: + out = self.imc_test_session.send_command("\n") + self.logger.info("create imc test session successfully") + + def create_acc_test_session(self): + self.acc_test_session = SSHConnection(host=self.crb["section"],session_name="acc",username="root",password="tester") + self.acc_test_session.init_log(getLogger("dut_acc_session")) + self.acc_test_session.send_expect("export TERM=linux-c-nc","#") + out = self.acc_test_session.send_command(f"sudo minicom -D {self.crb['ACC PORT']} -b {self.crb['ACC BAUDRATE']}") + # out = self.send_command(f"ssh 192.168.0.2") + while "root@mev-acc" not in out: + if "locked" in out: + self.bak_session.send_command("ps -ef | grep 'minicom -D %s' | grep -v grep | awk '{print $2}' | xargs kill -9"%(self.crb['ACC PORT'])) + out = self.acc_test_session.send_command(f"sudo minicom -D {self.crb['ACC PORT']} -b {self.crb['ACC BAUDRATE']}") + elif "login" in out: + out = self.acc_test_session.send_command("root") + else: + out = self.acc_test_session.send_command("\n") + self.acc_test_session.logger.info("login acc successfully") + def mev_config_rx_port(self, out): + rx_vport = settings.load_global_setting(DPDK_RX_VPORT_SETTING).lower() + try: + # self.ports_info[int(rx_vport)]['mac'] = re.findall(f'Port {rx_vport}: (.{17})\\r',out)[0] + mac = re.findall("Port %s: (.{17})\\r"%(rx_vport),out)[0] + except: + # self.ports_info[int(rx_vport)]['mac'] = re.findall('Address:(.{17})',out)[0] + mac = re.findall('Address:(.{17})',out)[0] + output = self.imc_test_session.send_command("cli_client --query --config --verbose") + vsi_id = re.findall("vsi_id: 0x(\w+).*is_created: yes.*mac addr: %s"%(mac.lower()),output) + self.imc_test_session.send_command("devmem 0x202920C100 64 0x80%s"%(vsi_id[0])) + + def set_up_mev_test_env(self): + if self.test_mev == "true": + self.bak_session = SSHConnection(host=self.crb["section"],session_name="bak",username="root",password="tester") + self.bak_session.init_log(getLogger("dut_bak")) + self.create_imc_test_session() + if self.crb["ACC PORT"] != "" and self.crb["ACC BAUDRATE"] != "" and self.crb["IP"] == self.crb["section"]: + self.create_acc_test_session() + self.session = self.acc_test_session + self.alt_session = self.acc_test_session class _EalParameter(object): def __init__( @@ -1428,6 +1510,7 @@ class _EalParameter(object): param other_eal_param: user defined DPDK eal parameters, eg: other_eal_param='--single-file-segments'; """ + self.test_mev=settings.load_global_setting(DPDK_TEST_MEV_SETTING).lower() self.os_type = dut.get_os_type() self.fixed_prefix = fixed_prefix self.socket = socket @@ -1561,7 +1644,12 @@ class _EalParameter(object): for port_info in self.dut.ports_info: pci_list.append("%s %s" % (allow_option, port_info["pci"])) self.dut.logger.info(pci_list) - return " ".join(pci_list) + # return " ".join(pci_list) + if self.test_mev =="true": + mev_port_options = self._get_mev_port_options() + return f"'' '.join(pci_list),{mev_port_options}" + else: + return " ".join(pci_list) def _make_b_ports_param(self) -> str: b_pci_list = [] @@ -1638,8 +1726,11 @@ class _EalParameter(object): port_mac_addr = self.dut.ports_info[port]["pci"] if type(port) == int else port port_param = f"{allow_option} {port_mac_addr}" port_option = self._get_port_options_from_config(port) - if port_option: - port_param = f"{port_param},{port_option}" + # if port_option: + # port_param = f"{port_param},{port_option}" + mev_port_options = self._get_mev_port_options() + if port_option or mev_port_options: + port_param = f"{port_param},{mev_port_options},{port_option}" return port_param def _get_port_options_from_config(self, port: Union[str, int]) -> str: @@ -1680,3 +1771,17 @@ class _EalParameter(object): ] ) return _eal_str + + + def _get_mev_port_options(self): + if self.test_mev == "true": + self.queue_model = settings.load_global_setting(DPDK_QUEUE_MODEL_SETTING) + self.vport = settings.load_global_setting(DPDK_VPORT_SETTING) + port_options_dict = { + "splitq":f"vport={self.vport}", + "singleq":f"vport={self.vport},rx_single=1,tx_single=1", + } + out = port_options_dict[self.queue_model] + return out + else: + return "" From patchwork Sun Jul 16 09:07:51 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jin Ling X-Patchwork-Id: 129551 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 A873A42E8C; Sun, 16 Jul 2023 11:08:18 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 9B8F942D13; Sun, 16 Jul 2023 11:08:18 +0200 (CEST) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by mails.dpdk.org (Postfix) with ESMTP id CB3914013F for ; Sun, 16 Jul 2023 11:08:17 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1689498498; x=1721034498; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=S5mk98ii5/ODtHwb+kf6Iz+8odakZr5mnr+Y0j3eWt4=; b=XRZKoKPH3Ontz2ZZ0RpVUkRMF0wnFWg3nPrZXQTARGFGNhujVNrT3EGo tEdYPAe72pIF14PQQ/eCEhoD8ZzA3x7IA+o8+7pNKX5hT98ubBpcEYqyX YiIWA0Rkza08Si2VvduLejWStJLTVYSfTrE/0z+wxm1KmdA9XAHt0g8uJ YZN3j3gXa9cqaW1/eLbneZ3nN8MMB4i2xvk9CBwCirmmGXse01Nuwz1Ga dJq7l8f1Dihtf5VCHoNfX5M9eiEXq5BzjyNGKwrxwhJuDphmirj9EBfzg nPToCagdIQjzpwrlX83BNxgPrGKn9tTGYiM6tVXgCljakJjgJxXBGEkTu Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10772"; a="350610643" X-IronPort-AV: E=Sophos;i="6.01,210,1684825200"; d="scan'208";a="350610643" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Jul 2023 02:08:17 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10772"; a="788303692" X-IronPort-AV: E=Sophos;i="6.01,210,1684825200"; d="scan'208";a="788303692" Received: from dpdk-lingjin.sh.intel.com ([10.67.114.163]) by fmsmga008.fm.intel.com with ESMTP; 16 Jul 2023 02:08:16 -0700 From: Jin Ling To: dts@dpdk.org Cc: Jin Ling Subject: [DTS][PATCH V1 07/10] framework/pmd_output: optimize function start_testpmd Date: Sun, 16 Jul 2023 17:07:51 +0800 Message-Id: <20230716090753.1590148-8-jin.ling@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230716090753.1590148-1-jin.ling@intel.com> References: <20230716090753.1590148-1-jin.ling@intel.com> MIME-Version: 1.0 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 add code to create cmdline for running testpmd Signed-off-by: Jin Ling --- framework/pmd_output.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/framework/pmd_output.py b/framework/pmd_output.py index c8e8b50f..865476ea 100644 --- a/framework/pmd_output.py +++ b/framework/pmd_output.py @@ -135,6 +135,7 @@ class PmdOutput: config["ports"] = [ self.dut.ports_info[i]["pci"] for i in range(len(self.dut.ports_info)) ] + config["ports"]=list(set(config["ports"])) all_eal_param = self.dut.create_eal_parameters( fixed_prefix=fixed_prefix, socket=socket, **config ) @@ -145,6 +146,8 @@ class PmdOutput: if self.session != self.dut: self.session.send_expect("cd %s" % self.dut.base_dir, "# ") out = self.session.send_expect(command, expected, timeout) + if self.dut.test_mev == "true": + self.dut.mev_config_rx_port(out=out) self.command = command # wait 10s to ensure links getting up before test start. sleep(10) From patchwork Sun Jul 16 09:07:52 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jin Ling X-Patchwork-Id: 129552 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 C8A5942E8A; Sun, 16 Jul 2023 11:08:20 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C2E5742BAC; Sun, 16 Jul 2023 11:08:20 +0200 (CEST) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by mails.dpdk.org (Postfix) with ESMTP id 34E7D4013F for ; Sun, 16 Jul 2023 11:08:19 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1689498499; x=1721034499; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=kTWalewadEeeJvTHv83bicVlFHiAdcF4aGWpQeHKeoY=; b=bcjwsdfzNMOhioe//PYoEoQXieAJSXoRP9skk657USAas6nFpRIMMn3u yXT13Z4cxmHCjDLqyk1YNYOQ9ulVwraS9aon3dpy5DLYUmSykVBZVYTjE EPiGfy1W3SXrchc6leCsQNfWRStDRM6calmEwt+3iU8SlnYal+cKjqHtA x9Uo4LN8CWCE4q1UHXtxjIznHT/gSLav4Xi931re5xWpXcn9XGnaBAhgn a7/rBIO/2L50zNdQfxxEwV0T6PZ/O3KqssE9+lxx0oGKWQTpb7K/XzpWL LKcX+rxEk4hWMQsbNYiwhTSCxYnuhrf/f6A2c7/JXr7xlnTI0e4+29++t Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10772"; a="350610645" X-IronPort-AV: E=Sophos;i="6.01,210,1684825200"; d="scan'208";a="350610645" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Jul 2023 02:08:18 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10772"; a="788303695" X-IronPort-AV: E=Sophos;i="6.01,210,1684825200"; d="scan'208";a="788303695" Received: from dpdk-lingjin.sh.intel.com ([10.67.114.163]) by fmsmga008.fm.intel.com with ESMTP; 16 Jul 2023 02:08:17 -0700 From: Jin Ling To: dts@dpdk.org Cc: Jin Ling Subject: [DTS][PATCH V1 08/10] framework/project_dpdk: optimize code Date: Sun, 16 Jul 2023 17:07:52 +0800 Message-Id: <20230716090753.1590148-9-jin.ling@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230716090753.1590148-1-jin.ling@intel.com> References: <20230716090753.1590148-1-jin.ling@intel.com> MIME-Version: 1.0 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 Optimizing functions to prevent errors when testing with mev Signed-off-by: Jin Ling --- framework/project_dpdk.py | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/framework/project_dpdk.py b/framework/project_dpdk.py index 3f34ee02..732eea12 100644 --- a/framework/project_dpdk.py +++ b/framework/project_dpdk.py @@ -98,9 +98,14 @@ class DPDKdut(Dut): "echo 1 > /sys/module/vfio/parameters/enable_unsafe_noiommu_mode", "#", ) - out = self.send_expect("ls /sys/module|grep vfio_pci", "#") - assert "vfio_pci" in out, "load vfio_pci failed" - + # out = self.send_expect("ls /sys/module|grep vfio_pci", "#") + # assert "vfio_pci" in out, "load vfio_pci failed" + if "mev" not in self.nic.name: + out = self.send_expect("ls /sys/module|grep vfio_pci", "#") + assert "vfio_pci" in out , "load vfio_pci failed" + + + elif drivername == "uio_pci_generic": self.send_expect("modprobe uio", "#", 70) self.send_expect("modprobe uio_pci_generic", "#", 70) @@ -415,9 +420,13 @@ class DPDKdut(Dut): current_nic = 0 for port_info in self.ports_info: - if nics_to_bind is None or current_nic in nics_to_bind: - binding_list += "%s " % (port_info["pci"]) - current_nic += 1 + # if nics_to_bind is None or current_nic in nics_to_bind: + # binding_list += "%s " % (port_info["pci"]) + if port_info["pci"] not in binding_list: + if nics_to_bind is None or current_nic in nics_to_bind: + binding_list += "%s " % (port_info["pci"]) + current_nic += 1 + # current_nic += 1 bind_script_path = self.get_dpdk_bind_script() return self.send_expect( From patchwork Sun Jul 16 09:07:53 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jin Ling X-Patchwork-Id: 129553 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 F0C4A42E8B; Sun, 16 Jul 2023 11:08:20 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E969F42D2D; Sun, 16 Jul 2023 11:08:20 +0200 (CEST) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by mails.dpdk.org (Postfix) with ESMTP id CF6924013F for ; Sun, 16 Jul 2023 11:08:19 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1689498500; x=1721034500; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=I8qau11vvkAkhDquk3TU/ijJGij1SeT94TT+UY+rgsY=; b=TatmIaCL9IxnTwTUBurqKJDbaMJKNzjAJZKXrQ+8WMrdqJN9WRT3we+D LEZiWmnfIFBjXc/+X7snMPuFAWP1RTIHWN2lDaAnIikRTMxORN2mV/sT1 eM/dGEwTD5vBQDHCk6H1vXjTYVNAKYZyJtwLUpFfRUkqeTwyNVErkFl2H NQNPXrn4PjIQQAWRnxMLPBvJqMCLmAD/RvFUq6m4Hxc0Cb5/usylRHOK7 TkjTld2OFwwBau0hIZRwPDSHUYwJvjEjO0iRrH8QeB+oEZHw8XJ29TNI9 n7XkazVlELH18JD4IBx+nwn4bPaensb2VaDFxQfD68khzDriz+NtBX/Vu Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10772"; a="350610648" X-IronPort-AV: E=Sophos;i="6.01,210,1684825200"; d="scan'208";a="350610648" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Jul 2023 02:08:19 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10772"; a="788303699" X-IronPort-AV: E=Sophos;i="6.01,210,1684825200"; d="scan'208";a="788303699" Received: from dpdk-lingjin.sh.intel.com ([10.67.114.163]) by fmsmga008.fm.intel.com with ESMTP; 16 Jul 2023 02:08:18 -0700 From: Jin Ling To: dts@dpdk.org Cc: Jin Ling Subject: [DTS][PATCH V1 09/10] framework/settings: add drivers and NICs for mev Date: Sun, 16 Jul 2023 17:07:53 +0800 Message-Id: <20230716090753.1590148-10-jin.ling@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230716090753.1590148-1-jin.ling@intel.com> References: <20230716090753.1590148-1-jin.ling@intel.com> MIME-Version: 1.0 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: Jin Ling --- framework/settings.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/framework/settings.py b/framework/settings.py index 1a561dda..b4a912e2 100644 --- a/framework/settings.py +++ b/framework/settings.py @@ -98,6 +98,8 @@ NICS = { "corigine_4000_pf": "1da8:4000", "corigine_6000_pf": "1da8:6000", "corigine_6000_vf": "1da8:6003", + "mev-idpf": "8086:1452", + "mev-cpfl": "8086:1453", } ETH_700_SERIES = ( @@ -193,6 +195,8 @@ DRIVERS = { "corigine_4000_pf": "nfp", "corigine_6000_pf": "nfp", "corigine_6000_vf": "nfp_vf", + "mev-idpf":"idpf", + "mev-cpfl":"cpfl", } """ @@ -267,7 +271,10 @@ DTS_ERROR_ENV = "DTS_RUNNING_ERROR" DTS_CFG_FOLDER = "DTS_CFG_FOLDER" DTS_PARALLEL_SETTING = "DTS_PARALLEL_ENABLE" UPDATE_EXPECTED = "DTS_UPDATE_EXPECTED_ENABLE" - +DPDK_QUEUE_MODEL_SETTING= "DTS_TEST_QUEUE_MODEL" +DPDK_VPORT_SETTING = "DTS_TEST_VPORT" +DPDK_RX_VPORT_SETTING = "DTS_TEST_RX_VPORT" +DPDK_TEST_MEV_SETTING = "DTS_TEST_MEV" """ DTS global error table