test suite reviews and discussions
 help / color / mirror / Atom feed
From: Qin Sun <qinx.sun@intel.com>
To: dts@dpdk.org
Cc: Qin Sun <qinx.sun@intel.com>
Subject: [dts] [PATCH V1] tests/rte_flow_common: add a method for gtpogre
Date: Wed, 28 Apr 2021 13:57:38 +0000	[thread overview]
Message-ID: <20210428135738.29605-1-qinx.sun@intel.com> (raw)

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


             reply	other threads:[~2021-04-28  5:24 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-28 13:57 Qin Sun [this message]
2021-04-28  5:49 ` Sun, QinX
2021-05-07  6:31 ` Tu, Lijuan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210428135738.29605-1-qinx.sun@intel.com \
    --to=qinx.sun@intel.com \
    --cc=dts@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).