test suite reviews and discussions
 help / color / mirror / Atom feed
* Re: [dts] [PATCH V1] tests/rte_flow_common: add a method for gtpogre
  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
  1 sibling, 0 replies; 3+ messages in thread
From: Sun, QinX @ 2021-04-28  5:49 UTC (permalink / raw)
  To: dts

[-- Attachment #1: Type: text/plain, Size: 292 bytes --]

> -----Original Message-----
> From: Sun, QinX <qinx.sun@intel.com>
> Sent: Wednesday, April 28, 2021 9:58 PM
> To: dts@dpdk.org
> Cc: Sun, QinX <qinx.sun@intel.com>
> Subject: [dts] [PATCH V1] tests/rte_flow_common: add a method for gtpogre

Tested-by: Qin Sun  <qinx.sun@intel.com>

[-- Attachment #2: TestCVLAdvancedIAVFRSSGTPoGRE.log --]
[-- Type: application/octet-stream, Size: 1878986 bytes --]

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

* [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

* Re: [dts] [PATCH V1] tests/rte_flow_common: add a method for gtpogre
  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
  1 sibling, 0 replies; 3+ messages in thread
From: Tu, Lijuan @ 2021-05-07  6:31 UTC (permalink / raw)
  To: Sun, QinX, dts; +Cc: Sun, QinX

> -----Original Message-----
> From: dts <dts-bounces@dpdk.org> On Behalf Of Qin Sun
> Sent: 2021年4月28日 21:58
> To: dts@dpdk.org
> Cc: Sun, QinX <qinx.sun@intel.com>
> Subject: [dts] [PATCH V1] tests/rte_flow_common: add a method for gtpogre
> 
> add a method for pf/iavf gtpogre suite to call
> 
> Signed-off-by: Qin Sun <qinx.sun@intel.com>

Applied

^ 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

test suite reviews and discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://inbox.dpdk.org/dts/0 dts/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 dts dts/ https://inbox.dpdk.org/dts \
		dts@dpdk.org
	public-inbox-index dts

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://inbox.dpdk.org/inbox.dpdk.dts


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git