From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id AAC16A00C2; Wed, 30 Nov 2022 04:54:52 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A6A3642D0D; Wed, 30 Nov 2022 04:54:52 +0100 (CET) Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by mails.dpdk.org (Postfix) with ESMTP id CD8F04014F for ; Wed, 30 Nov 2022 04:54:49 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1669780490; x=1701316490; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=awllhLDM94fraZY5F2ccOYwXirN1ZMEIq8et7bTT+4M=; b=mx932GP9v0urCwTFbxXNFpnSsUZuTOwwiND+1BHlDjAif0nDN/HL/4g4 kmvZSfOKUENrCWKSgr32gVgoqIqZnmfvz6B/si2bauIPESPWkDoLxVYNl kzXhfWn7PwIdPEQA6N4WSFrbXDYoh+5KsxUHo0XdK6QhunYOypURu50Lg obucxG0+eN8ldMbb6iHkOpa8Zic3me8uhf48BBHO+Ab1oYiZo8jqBsLcW I343qul7NdNmnV4cAvFC21Z1CgnMZ9fpwd3fxlTbVCAq/D6Jl/wjPd4dV LR7+WIsVgG/sVetqo76b0iFnG83r27QRcLiz9zu4pjphV1amK8wnhABLF A==; X-IronPort-AV: E=McAfee;i="6500,9779,10546"; a="312910916" X-IronPort-AV: E=Sophos;i="5.96,205,1665471600"; d="scan'208";a="312910916" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Nov 2022 19:54:49 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10546"; a="621728193" X-IronPort-AV: E=Sophos;i="5.96,205,1665471600"; d="scan'208";a="621728193" Received: from dpdk-xuke-lab.sh.intel.com ([10.67.114.198]) by orsmga006.jf.intel.com with ESMTP; 29 Nov 2022 19:54:47 -0800 From: Ke Xu To: dts@dpdk.org Cc: lijuan.tu@intel.com, Ke Xu , Jin Ling Subject: [DTS][PATCH V1 3/3] tests/dcf_lifecycle: update test plan to support represented port action from deprecated vf action Date: Wed, 30 Nov 2022 11:53:29 +0800 Message-Id: <20221130035329.98118-4-ke1.xu@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221130035329.98118-1-ke1.xu@intel.com> References: <20221130035329.98118-1-ke1.xu@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 A new API is introduced to replace the VF actions in DPDK 22.11. To support This new API, several modifications are made. New field is added in setup for applying representor to the case. Testpmd args are modified to support appyling representors for the new API. Rules are modified for the old API being deprecated, changing to the new API. Ports id are modified corresponding to the port representors and modified API. Signed-off-by: Jin Ling Signed-off-by: Ke Xu --- tests/TestSuite_dcf_lifecycle.py | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/tests/TestSuite_dcf_lifecycle.py b/tests/TestSuite_dcf_lifecycle.py index 1c97412c..cd7e1824 100644 --- a/tests/TestSuite_dcf_lifecycle.py +++ b/tests/TestSuite_dcf_lifecycle.py @@ -239,11 +239,13 @@ class TestDcfLifeCycle(TestCase): ) allowlist = { "pf1_vf0_dcf": f"-a {pf1_vf0},cap=dcf", + "pf1_vf0_dcf_repre_vf1": f"-a {pf1_vf0},cap=dcf,representor=vf[1]", "pf1_vf1_dcf": f"-a {pf1_vf1},cap=dcf", "pf1_vf0_pf2_vf0_dcf": f"-a {pf1_vf0},cap=dcf -a {pf2_vf0},cap=dcf", "pf1_vf1_vf2": f"-a {pf1_vf1} -a {pf1_vf2}", "pf1_vf1": f"-a {pf1_vf1}", "pf2_vf0_dcf": f"-a {pf2_vf0},cap=dcf", + "pf2_vf0_dcf_repre_vf1": f"-a {pf2_vf0},cap=dcf,representor=vf[1]", "pf1_vf0": f"-a {pf1_vf0}", "pf1_vf0_dcf_vf1": f"-a {pf1_vf0},cap=dcf -a {pf1_vf1}", } @@ -278,11 +280,11 @@ class TestDcfLifeCycle(TestCase): "{port} " "priority 0 " "ingress pattern eth / ipv4 src is {ip_src} dst is {ip_dst} / end " - "actions vf id {vf_id} / end" + "actions represented_port ethdev_port_id {vf_id} / end" ).format( **{ "port": dut_port_id, - "vf_id": 1, + "vf_id": dut_port_id + 1, "ip_src": self.get_ip_layer()["ipv4"]["src"], "ip_dst": self.get_ip_layer()["ipv4"]["dst"], } @@ -664,7 +666,7 @@ class TestDcfLifeCycle(TestCase): except_content = None try: self.vf_set_trust() - pmd_opts = [["pf1_vf0_dcf", "dcf"], ["pf1_vf1", "vf"]] + pmd_opts = [["pf1_vf0_dcf_repre_vf1", "dcf"], ["pf1_vf1", "vf"]] self.run_test_pre(pmd_opts) self.vf_dcf_testpmd_set_flow_rule() self.check_vf_pmd2_traffic("close_vf_dcf_testpmd") @@ -684,7 +686,7 @@ class TestDcfLifeCycle(TestCase): except_content = None try: self.vf_set_trust() - pmd_opts = [["pf1_vf0_dcf", "dcf"], ["pf1_vf1", "vf"]] + pmd_opts = [["pf1_vf0_dcf_repre_vf1", "dcf"], ["pf1_vf1", "vf"]] self.run_test_pre(pmd_opts) self.vf_dcf_testpmd_set_flow_rule() self.check_vf_pmd2_traffic("vf_set_trust_off") @@ -704,7 +706,7 @@ class TestDcfLifeCycle(TestCase): except_content = None try: self.vf_set_trust() - pmd_opts = [["pf1_vf0_dcf", "dcf"], ["pf1_vf1", "vf"]] + pmd_opts = [["pf1_vf0_dcf_repre_vf1", "dcf"], ["pf1_vf1", "vf"]] self.run_test_pre(pmd_opts) self.vf_dcf_testpmd_set_flow_rule() self.check_vf_pmd2_traffic( @@ -760,7 +762,7 @@ class TestDcfLifeCycle(TestCase): except_content = None try: self.vf_set_trust() - pmd_opts = [["pf1_vf0_dcf", "dcf"], ["pf1_vf1", "vf"]] + pmd_opts = [["pf1_vf0_dcf_repre_vf1", "dcf"], ["pf1_vf1", "vf"]] self.run_test_pre(pmd_opts) self.vf_dcf_testpmd_set_flow_rule() self.check_vf_pmd2_traffic("vf_set_mac_addr", flag=True) @@ -1642,7 +1644,7 @@ class TestDcfLifeCycle(TestCase): except_content = None try: self.vf_set_trust() - pmd_opts = [["pf1_vf0_dcf", "dcf"], ["pf1_vf1", "vf"]] + pmd_opts = [["pf1_vf0_dcf_repre_vf1", "dcf"], ["pf1_vf1", "vf"]] self.run_test_pre(pmd_opts) self.vf_dcf_testpmd_set_flow_rule() self.check_vf_traffic( @@ -1668,7 +1670,7 @@ class TestDcfLifeCycle(TestCase): except_content = None try: self.vf_set_trust() - pmd_opts = [["pf1_vf0_dcf", "dcf"], ["pf1_vf1", "vf"]] + pmd_opts = [["pf1_vf0_dcf_repre_vf1", "dcf"], ["pf1_vf1", "vf"]] self.run_test_pre(pmd_opts) self.vf_dcf_testpmd_set_flow_rule() self.check_vf_traffic("vf_dcf_reset_device") @@ -1690,7 +1692,7 @@ class TestDcfLifeCycle(TestCase): except_content = None try: self.vf_set_trust() - pmd_opts = [["pf1_vf0_dcf", "dcf"], ["pf1_vf1", "vf"]] + pmd_opts = [["pf1_vf0_dcf_repre_vf1", "dcf"], ["pf1_vf1", "vf"]] self.run_test_pre(pmd_opts) self.vf_dcf_testpmd_set_flow_rule() self.check_vf_traffic("vf_dcf_reset_port_detach") @@ -1712,7 +1714,7 @@ class TestDcfLifeCycle(TestCase): except_content = None try: self.vf_set_trust() - pmd_opts = [["pf1_vf0_dcf", "dcf"], ["pf1_vf1", "vf"]] + pmd_opts = [["pf1_vf0_dcf_repre_vf1", "dcf"], ["pf1_vf1", "vf"]] self.run_test_pre(pmd_opts) self.vf_dcf_testpmd_set_flow_rule() self.check_vf_traffic("vf_dcf_reset_mtu") @@ -1734,7 +1736,7 @@ class TestDcfLifeCycle(TestCase): except_content = None try: self.vf_set_trust() - pmd_opts = [["pf1_vf0_dcf", "dcf"], ["pf1_vf1", "vf"]] + pmd_opts = [["pf1_vf0_dcf_repre_vf1", "dcf"], ["pf1_vf1", "vf"]] self.run_test_pre(pmd_opts) self.vf_dcf_testpmd_set_flow_rule() self.check_vf_traffic("vf_dcf_set_mac_addr") -- 2.25.1