test suite reviews and discussions
 help / color / mirror / Atom feed
* [dts] [PATCH] fix bug that packet type detect failure
@ 2015-07-21  2:12 Yong Liu
  0 siblings, 0 replies; only message in thread
From: Yong Liu @ 2015-07-21  2:12 UTC (permalink / raw)
  To: dts

From: Marvin Liu <yong.liu@intel.com>

Packet type value changed after unified packet type. So suite need
modification as consequence.

Signed-off-by: Marvin Liu <yong.liu@intel.com>

diff --git a/tests/TestSuite_nvgre.py b/tests/TestSuite_nvgre.py
index 62bb83b..954259d 100644
--- a/tests/TestSuite_nvgre.py
+++ b/tests/TestSuite_nvgre.py
@@ -163,14 +163,14 @@ class NvgreTestConfig(object):
         """
         if self.outer_ip_proto != 47:
             if self.outer_l3_type == 'IPv4':
-                return 'PKT_RX_IPV4_HDR'
+                return '(outer) L3 type: IPV4_EXT_UNKNOWN'
             else:
-                return 'PKT_RX_IPV6_HDR'
+                return '(outer) L3 type: IPV6_EXT_UNKNOWN'
         else:
-            if self.outer_l3_type == 'IPv4':
-                return 'PKT_RX_TUNNEL_IPV4_HDR'
+            if self.inner_l3_type == 'IPv4':
+                return 'Inner L3 type: IPV4_EXT_UNKNOWN'
             else:
-                return 'PKT_RX_TUNNEL_IPV6_HDR'
+                return 'Inner L3 type: IPV6_EXT_UNKNOWN'
 
     def create_pcap(self, scp=True):
         """
diff --git a/tests/TestSuite_vxlan.py b/tests/TestSuite_vxlan.py
index 9dd7862..91da7ca 100644
--- a/tests/TestSuite_vxlan.py
+++ b/tests/TestSuite_vxlan.py
@@ -90,14 +90,14 @@ class VxlanTestConfig(object):
         """
         if self.outer_udp_dst != VXLAN_PORT:
             if self.outer_ip6_src != 'N/A':
-                return 'PKT_RX_IPV6_HDR'
+                return '(outer) L3 type: IPV6_EXT_UNKNOWN'
             else:
-                return 'PKT_RX_IPV4_HDR'
+                return '(outer) L3 type: IPV4_EXT_UNKNOWN'
         else:
-            if self.outer_ip6_src != 'N/A':
-                return 'PKT_RX_TUNNEL_IPV6_HDR'
+            if self.inner_ip6_src != 'N/A':
+                return 'Inner L3 type: IPV6_EXT_UNKNOWN'
             else:
-                return 'PKT_RX_TUNNEL_IPV4_HDR'
+                return 'Inner L3 type: IPV4_EXT_UNKNOWN'
 
     def create_pcap(self, scp=True):
         """
-- 
1.9.3

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2015-07-21  2:12 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-07-21  2:12 [dts] [PATCH] fix bug that packet type detect failure Yong Liu

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).