test suite reviews and discussions
 help / color / mirror / Atom feed
* [dts] [PATCH V1]tests/cvl_advanced_iavf_rss:change pfcp case according to testplan
@ 2020-06-15 17:21 Zeng Xiaoxiao
  2020-06-15  8:42 ` Zeng, XiaoxiaoX
  0 siblings, 1 reply; 2+ messages in thread
From: Zeng Xiaoxiao @ 2020-06-15 17:21 UTC (permalink / raw)
  To: dts; +Cc: Zeng Xiaoxiao

*. change pfcp part test according to the latest cvl_advanced_iavf_rss_test_plan

Signed-off-by: Zeng Xiaoxiao <xiaoxiaox.zeng@intel.com>
---
 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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-06-15  8:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-15 17:21 [dts] [PATCH V1]tests/cvl_advanced_iavf_rss:change pfcp case according to testplan Zeng Xiaoxiao
2020-06-15  8:42 ` Zeng, XiaoxiaoX

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).