[dts] [PATCH V1] tests/rte_flow_common: add a method for gtpogre
Qin Sun
qinx.sun at intel.com
Wed Apr 28 15:57:38 CEST 2021
add a method for pf/iavf gtpogre suite to call
Signed-off-by: Qin Sun <qinx.sun at 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
More information about the dts
mailing list