test suite reviews and discussions
 help / color / mirror / Atom feed
* [dts] [PATCH V1] tests/rte_flow_common: add a method for gtpogre
@ 2021-04-28 13:57 Qin Sun
  2021-04-28  5:49 ` Sun, QinX
  2021-05-07  6:31 ` Tu, Lijuan
  0 siblings, 2 replies; 3+ messages in thread
From: Qin Sun @ 2021-04-28 13:57 UTC (permalink / raw)
  To: dts; +Cc: Qin Sun

add a method for pf/iavf gtpogre suite to call

Signed-off-by: Qin Sun <qinx.sun@intel.com>
---
 tests/rte_flow_common.py | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/tests/rte_flow_common.py b/tests/rte_flow_common.py
index e0a378f3..46f0b96d 100644
--- a/tests/rte_flow_common.py
+++ b/tests/rte_flow_common.py
@@ -1063,3 +1063,12 @@ class RssProcessing(object):
                               .replace('IP()', 'IPv6()').replace('mac_ipv4', 'mac_ipv6'))
                          for element in template]
         return ipv6_template
+
+    @staticmethod
+    def get_ipv6_template_by_ipv4_gtpogre(template):
+        if isinstance(template, dict):
+            template = [template]
+        ipv6_template = [eval(str(element).replace('eth / ipv4', 'eth / ipv6')
+                              .replace('IP(proto=0x2F)/GRE(proto=0x0800)/IP()', 'IPv6(nh=0x2F)/GRE(proto=0x86DD)/IPv6()').replace('mac_ipv4', 'mac_ipv6'))
+                         for element in template]
+        return ipv6_template
-- 
2.17.1


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

end of thread, other threads:[~2021-05-07  6:31 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-28 13:57 [dts] [PATCH V1] tests/rte_flow_common: add a method for gtpogre Qin Sun
2021-04-28  5:49 ` Sun, QinX
2021-05-07  6:31 ` Tu, Lijuan

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