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 3437EA00C5; Wed, 30 Nov 2022 04:57:25 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2DF2540A79; Wed, 30 Nov 2022 04:57:25 +0100 (CET) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by mails.dpdk.org (Postfix) with ESMTP id 50F464014F for ; Wed, 30 Nov 2022 04:57:24 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1669780644; x=1701316644; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=zoMAmSgwWt0garbCukW5NNv7S+P269XNDNO9sZoUexA=; b=nm7dblQAO/qKqBBOk+bh3hLGt3UwHZHugOfB2I6ar3OEFm4iOLLODUzd O4ZG5c1jIBEmFt8sRNC8juKLulZx02+dl6/0fi2LcxGDYXbryWvjBTXSI qsGQ2LFeUfOw9k/IPAtZeIT8wwUlJPBGE0TauO7WaVv3WFp5P6M6Jf7Cy KVOMS23NxmFGlO+qd6DCbWVEag8HmY5Q7qrW9kjU2segylGYK3txkcIxA jUrnr1rlNdiH5zamMjjATqXwzJgZsrA6U9KC7Yyvj4WjVxq9btjn7gSxL mRyQ+gFTD6ZOEC34WeYh4yy6b2c0Be25qGqUoZmzPsTmIpUu5SxaGfAQb w==; X-IronPort-AV: E=McAfee;i="6500,9779,10546"; a="298665834" X-IronPort-AV: E=Sophos;i="5.96,205,1665471600"; d="scan'208";a="298665834" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Nov 2022 19:57:23 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10546"; a="972945019" X-IronPort-AV: E=Sophos;i="5.96,205,1665471600"; d="scan'208";a="972945019" Received: from dpdk-xuke-lab.sh.intel.com ([10.67.114.198]) by fmsmga005.fm.intel.com with ESMTP; 29 Nov 2022 19:57:22 -0800 From: Ke Xu To: dts@dpdk.org Cc: lijuan.tu@intel.com, Ke Xu , Jin Ling Subject: [DTS][PATCH V1 2/2] tests/ice_limit_value_test: update test plan to support represented port action from deprecated vf action Date: Wed, 30 Nov 2022 11:56:11 +0800 Message-Id: <20221130035611.99205-3-ke1.xu@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221130035611.99205-1-ke1.xu@intel.com> References: <20221130035611.99205-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. 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_ice_limit_value_test.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/TestSuite_ice_limit_value_test.py b/tests/TestSuite_ice_limit_value_test.py index b75cea84..06160c0a 100644 --- a/tests/TestSuite_ice_limit_value_test.py +++ b/tests/TestSuite_ice_limit_value_test.py @@ -23,7 +23,7 @@ tv_max_rule_number = { "scapy_str": [], "check_func": { "func": rfc.check_vf_rx_packets_number, - "param": {"expect_port": 1}, + "param": {"expect_port": 2}, }, "expect_results": {"expect_pkts": 32500}, }, @@ -33,7 +33,7 @@ tv_max_rule_number = { ], "check_func": { "func": rfc.check_vf_rx_packets_number, - "param": {"expect_port": 1}, + "param": {"expect_port": 2}, }, "expect_results": {"expect_pkts": 0}, }, @@ -1166,7 +1166,7 @@ class TestICELimitValue(TestCase): for j in range(0, 255): if not rule_count > 32500: flows.write( - "flow create 0 ingress pattern eth / ipv4 src is 192.168.%d.%d / end actions vf id 1 / end \n" + "flow create 0 ingress pattern eth / ipv4 src is 192.168.%d.%d / end actions represented_port ethdev_port_id 1 / end \n" % (i, j) ) matched_scapy_str = ( @@ -1188,7 +1188,7 @@ class TestICELimitValue(TestCase): all_eal_param = self.dut.create_eal_parameters( cores="1S/4C/1T", ports=[vf0_pci, vf1_pci], - port_options={vf0_pci: "cap=dcf"}, + port_options={vf0_pci: "cap=dcf,representor=vf[1]"}, ) command = ( self.path @@ -1197,7 +1197,7 @@ class TestICELimitValue(TestCase): ) out = self.dut.send_expect(command, "testpmd> ", 360) self.testpmd_status = "running" - self.dut.send_expect("set portlist 1", "testpmd> ", 15) + self.dut.send_expect("set portlist 2", "testpmd> ", 15) self.dut.send_expect("set fwd rxonly", "testpmd> ", 15) # check the rule list with 32500 rules rule_list_num = list(range(0, 32500)) @@ -1212,7 +1212,7 @@ class TestICELimitValue(TestCase): for i in range(m, 255): for j in range(t, 255): rule = ( - "flow create 0 ingress pattern eth / ipv4 src is 192.168.%d.%d / end actions vf id 1 / end \n" + "flow create 0 ingress pattern eth / ipv4 src is 192.168.%d.%d / end actions represented_port ethdev_port_id 1 / end \n" % (i, j) ) matched_packet = ( -- 2.25.1