From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 3C4F4A0093; Mon, 15 Jun 2020 10:41:28 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id EEDCF2B94; Mon, 15 Jun 2020 10:41:27 +0200 (CEST) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id 5865B2B87 for ; Mon, 15 Jun 2020 10:41:25 +0200 (CEST) IronPort-SDR: XQdSqyTdiC+E4FcLLa2renByfBHofY1/zgQztz/pmv1xBnuTSY7IMPiFBeh6USnRFyQ3yqQ/Nf rDeHbnutmdzg== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Jun 2020 01:41:16 -0700 IronPort-SDR: MECKl9cVS25lyM255GytqlqTsn/9VxCs3a9xdW//vhElSmUulMxdeSmev+ogLW8J+7+sjjel1C 3iobhEC9wtEg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,514,1583222400"; d="scan'208";a="382450109" Received: from unknown (HELO dpdk-zhushuai-tetser.icx.intel.com) ([10.240.183.103]) by fmsmga001.fm.intel.com with ESMTP; 15 Jun 2020 01:41:15 -0700 From: Zeng Xiaoxiao To: dts@dpdk.org Cc: Zeng Xiaoxiao Date: Mon, 15 Jun 2020 17:21:38 +0000 Message-Id: <20200615172138.9844-1-xiaoxiaox.zeng@intel.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: [dts] [PATCH V1]tests/cvl_advanced_iavf_rss:change pfcp case according to testplan X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.15 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 Sender: "dts" *. change pfcp part test according to the latest cvl_advanced_iavf_rss_test_plan Signed-off-by: Zeng Xiaoxiao --- tests/TestSuite_cvl_advanced_iavf_rss.py | 50 ++++++++++++++---------- 1 file changed, 30 insertions(+), 20 deletions(-) diff --git a/tests/TestSuite_cvl_advanced_iavf_rss.py b/tests/TestSuite_cvl_advanced_iavf_rss.py index 1e6ac19..ade3bba 100644 --- a/tests/TestSuite_cvl_advanced_iavf_rss.py +++ b/tests/TestSuite_cvl_advanced_iavf_rss.py @@ -268,26 +268,25 @@ tv_iavf_mac_cvlan_rss = { "check_func": rfc.check_iavf_packets_rss_queue } -tv_iavf_mac_ipv4_pfcp_session = { - "name": "iavf_mac_ipv4_pfcp_session", - "rte_flow_pattern": "flow create 0 ingress pattern eth / ipv4 / udp / pfcp / end actions rss types pfcp end key_len 0 queues end / end", - "scapy_str": [ - 'Ether(dst="%s")/IP(src=RandIP(),dst=RandIP())/UDP(sport=RandShort(),dport=RandShort())/PFCP(Sfield=1, SEID=12)/Raw("X"*480)' % vf0_mac, - 'Ether(dst="%s")/IP(src=RandIP(),dst=RandIP())/UDP(sport=RandShort(),dport=RandShort())/PFCP(Sfield=0)/("X"*480)' % vf0_mac, - 'Ether(dst="%s")/IPv6()/UDP(sport=RandShort(),dport=RandShort())/PFCP(Sfield=1, SEID=12)/("X"*480)' % vf0_mac, +tv_iavf_mac_ipv4_pfcp_session_match_dismatch = { + "name": "iavf_mac_ipv4_pfcp_session_match_dismatch", + "rte_flow_pattern": "flow create 0 ingress pattern eth / ipv4 / udp / pfcp / end actions rss types pfcp end key_len 0 queues end / end", + "match_str":['Ether(dst="%s")/IP(src="192.168.0.20",dst="192.168.0.21")/UDP(sport=22,dport=8805)/PFCP(Sfield=1, SEID=RandShort())/Raw("x"*480)'% + vf0_mac], + "dismatch_str": [ + 'Ether(dst="%s")/IP(src="192.168.0.20",dst="192.168.0.21")/UDP(sport=22,dport=8805)/PFCP(Sfield=0)/Raw("X"*480)' % vf0_mac, + 'Ether(dst="%s")/IPv6()/UDP(sport=22,dport=8805)/PFCP(Sfield=1, SEID=12)/("X"*480)' % vf0_mac, ], "send_count": 100, "check_func": rfc.check_iavf_packets_rss_queue } -tv_iavf_mac_ipv6_pfcp_session = { - "name": "iavf_mac_ipv6_pfcp_session", - "rte_flow_pattern": "flow create 0 ingress pattern eth / ipv6 / udp / pfcp / end actions rss types pfcp end key_len 0 queues end / end", - "scapy_str": ['Ether(dst="%s")/IPv6()/UDP(sport=RandShort(),dport=RandShort())/PFCP(Sfield=1, SEID=12)/("X"*480)' % vf0_mac, - 'Ether(dst="%s")/IPv6()/UDP(sport=RandShort(),dport=RandShort())/PFCP(Sfield=0)/("X"*480)' % vf0_mac, - 'Ether(dst="%s")/IP(src=RandIP(),dst=RandIP())/UDP(sport=RandShort(),dport=RandShort())/PFCP(Sfield=1, SEID=12)/' - '("X"*480)' % vf0_mac, - ], +tv_iavf_mac_ipv6_pfcp_session_match_dismatch = { + "name": "iavf_mac_ipv6_pfcp_session_match_dismatch", + "rte_flow_pattern": "flow create 0 ingress pattern eth / ipv6 / udp / pfcp / end actions rss types pfcp end key_len 0 queues end / end", + "match_str": ['Ether(dst="%s")/IPv6()/UDP(sport=22,dport=8805)/PFCP(Sfield=1, SEID=RandShort())/Raw("x"*480)' %vf0_mac], + "dismatch_str": ['Ether(dst="%s")/IPv6()/UDP(sport=22,dport=8805)/PFCP(Sfield=0)/("X"*480)' % vf0_mac, + 'Ether(dst="%s")/IP(src="192.168.0.20",dst="192.168.0.21")/UDP(sport=22,dport=8805)/PFCP(Sfield=1, SEID=12)/("X"*480)' % vf0_mac], "send_count": 100, "check_func": rfc.check_iavf_packets_rss_queue } @@ -655,9 +654,12 @@ tvs_iavf_mac_rss_cvlan = [ tv_iavf_mac_cvlan_rss, ] -tvs_iavf_mac_rss_pfcp = [ - tv_iavf_mac_ipv4_pfcp_session, - tv_iavf_mac_ipv6_pfcp_session, +tvs_iavf_mac_rss_pfcp_ipv4 = [ + tv_iavf_mac_ipv4_pfcp_session_match_dismatch, +] + +tvs_iavf_mac_rss_pfcp_ipv6 = [ + tv_iavf_mac_ipv6_pfcp_session_match_dismatch, ] tvs_iavf_gtpu_ipv4 = [ @@ -956,9 +958,17 @@ class AdvancedIavfRSSTest(TestCase): self.create_testpmd_command(self.vf0_prop) self._rte_flow_validate_pattern(tvs_iavf_mac_rss_cvlan) - def test_iavf_rss_PFCP(self): + def test_iavf_rss_PFCP_ipv4(self): + self.create_testpmd_command(self.vf0_prop) + self.pmd_output.execute_cmd("flow validate 0 ingress pattern eth / ipv4 / udp / pfcp / end actions rss types pfcp end key_len 0 queues end " + "/ end") + self._rte_flow_validate_pattern(tvs_iavf_mac_rss_pfcp_ipv4) + + def test_iavf_rss_PFCP_ipv6(self): self.create_testpmd_command(self.vf0_prop) - self._rte_flow_validate_pattern(tvs_iavf_mac_rss_pfcp) + self.pmd_output.execute_cmd("flow validate 0 ingress pattern eth / ipv6 / udp / pfcp / end actions rss types pfcp end key_len 0 queues end " + "/ end") + self._rte_flow_validate_pattern(tvs_iavf_mac_rss_pfcp_ipv6) def test_iavf_ipv4_gtpu_updown(self): self.create_testpmd_command(self.vf0_prop) -- 2.17.1