From patchwork Wed Sep 28 03:18:43 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ke Xu X-Patchwork-Id: 116990 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 40068A00C2; Wed, 28 Sep 2022 05:27:03 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 3B3514113C; Wed, 28 Sep 2022 05:27:03 +0200 (CEST) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by mails.dpdk.org (Postfix) with ESMTP id 5492840E25 for ; Wed, 28 Sep 2022 05:27:01 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1664335621; x=1695871621; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=nrn2bsKJdQc7NIyxagMwl8YTGBmDDc0ZJ38PNt4WpEk=; b=cdY8+by0cAB1+nuaxiFNhjVLvw2QAaTAG89AniOAcTwm32YzX+qgm5CR efGAoYo9G3mDdkPnMhNJk7Sk/nqsexOHT1O1ZJxvIoQMpXmVUTjAud+Ai 7F17UIe146YkhmCoIFvTSBXtA7V3SElFU72ONZ6bXfnftSvEthreNW5Wk YiTAHZWoxxV6KYMyVFR4MnLIrbUnoTxSAfz7c2aQuOE2u/sE1fMFR+qz5 L24ScVILuzngcWauFYZ31MSw2Kt25x35GKUV2gcxMCLttTONtqvqX6R0V fYj6N1ySaQh4a9NR/PGGs6XffAGq9lx6Jt5NVRLCpkvcnV51ls40QrOGf g==; X-IronPort-AV: E=McAfee;i="6500,9779,10483"; a="302405163" X-IronPort-AV: E=Sophos;i="5.93,350,1654585200"; d="scan'208";a="302405163" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Sep 2022 20:27:00 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10483"; a="710803240" X-IronPort-AV: E=Sophos;i="5.93,350,1654585200"; d="scan'208";a="710803240" Received: from unknown (HELO DPDK-XUKE-LAB.sh.intel.com) ([10.67.116.226]) by FMSMGA003.fm.intel.com with ESMTP; 27 Sep 2022 20:26:58 -0700 From: Ke Xu To: dts@dpdk.org Cc: lijuan.tu@intel.com, jin.ling@intel.com, zhiminx.huang@intel.com, weiyuanx.li@intel.com, qi.fu@intel.com, Ke Xu Subject: [DTS][PATCH V1 13/21] tests/ice_limit_value_test: update test plan to support represented port action from deprecated vf action Date: Wed, 28 Sep 2022 03:18:43 +0000 Message-Id: <20220928031836.770004-14-ke1.xu@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220928031836.770004-1-ke1.xu@intel.com> References: <20220928031836.770004-1-ke1.xu@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 Reviewed-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 = (