[V1,1/2] tests/cvl_advanced_iavf_rss: modify next header as 17

Message ID 20211029164615.32677-2-qinx.sun@intel.com (mailing list archive)
State Accepted
Headers
Series replace 'proto' with 'nh' |

Commit Message

Sun, QinX Oct. 29, 2021, 4:46 p.m. UTC
  replace the 'proto' with 'nh', 'proto' used for ipv4, 'nh' used for ipv6.
in pattern 'eth/ipv4/gre/ipv6/udp', the next header of ipv6 is 'udp',so the 'nh' should be set as 17

Signed-off-by: Qin Sun <qinx.sun@intel.com>
---
 tests/TestSuite_cvl_advanced_iavf_rss.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
 mode change 100644 => 100755 tests/TestSuite_cvl_advanced_iavf_rss.py
  

Comments

Sun, QinX Oct. 29, 2021, 8:55 a.m. UTC | #1
> -----Original Message-----
> From: Sun, QinX <qinx.sun@intel.com>
> Sent: Saturday, October 30, 2021 12:46 AM
> To: dts@dpdk.org
> Cc: Sun, QinX <qinx.sun@intel.com>
> Subject: [dts] [PATCH V1 1/2] tests/cvl_advanced_iavf_rss: modify next header as 17

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

Patch

diff --git a/tests/TestSuite_cvl_advanced_iavf_rss.py b/tests/TestSuite_cvl_advanced_iavf_rss.py
old mode 100644
new mode 100755
index 25dd9976..1848baa2
--- a/tests/TestSuite_cvl_advanced_iavf_rss.py
+++ b/tests/TestSuite_cvl_advanced_iavf_rss.py
@@ -5072,9 +5072,9 @@  mac_ipv4_gre_ipv4_udp_symmetric = eval(str(mac_ipv4_gre_ipv4_tcp_symmetric).repl
 
 mac_ipv6_gre_ipv4_udp_symmetric = eval(str(mac_ipv6_gre_ipv4_tcp_symmetric).replace('tcp','udp').replace('TCP','UDP').replace('proto=6','proto=17'))
 
-mac_ipv4_gre_ipv6_udp_symmetric = eval(str(mac_ipv4_gre_ipv6_tcp_symmetric).replace('tcp','udp').replace('TCP','UDP').replace('proto=6','proto=17'))
+mac_ipv4_gre_ipv6_udp_symmetric = eval(str(mac_ipv4_gre_ipv6_tcp_symmetric).replace('tcp','udp').replace('TCP','UDP').replace('nh=6','nh=17'))
 
-mac_ipv6_gre_ipv6_udp_symmetric = eval(str(mac_ipv6_gre_ipv6_tcp_symmetric).replace('tcp','udp').replace('TCP','UDP').replace('proto=6','proto=17'))
+mac_ipv6_gre_ipv6_udp_symmetric = eval(str(mac_ipv6_gre_ipv6_tcp_symmetric).replace('tcp','udp').replace('TCP','UDP').replace('nh=6','nh=17'))
 #gre tunnel end
 
 class AdvancedIavfRSSTest(TestCase):