[PATCH V1] tests/vxlan:Vxlan ipv6 checksum offload add set outer-udp

Lewei Yang leweix.yang at intel.com
Thu Nov 11 15:27:54 CET 2021


From: YangLewei <leweix.yang at intel.com>

According to dpdk commit 8cc79a1636cd("net/i40e: fix forward outer IPv6 VXLAN"),
this patch added outer UDP checksum,so need set csum hw outer-udp to forward outer IPv6 VXLAN packets.

Signed-off-by: YangLewei <leweix.yang at intel.com>
---
 test_plans/vxlan_test_plan.rst | 1 +
 tests/TestSuite_vxlan.py       | 1 +
 2 files changed, 2 insertions(+)

diff --git a/test_plans/vxlan_test_plan.rst b/test_plans/vxlan_test_plan.rst
index 8af3d8b4..1db5b488 100644
--- a/test_plans/vxlan_test_plan.rst
+++ b/test_plans/vxlan_test_plan.rst
@@ -240,6 +240,7 @@ Enable IP,UDP,TCP,SCTP,VXLAN checksum offload::
     csum set tcp hw 0
     csum set stcp hw 0
     csum set outer-ip hw 0
+    csum set outer-udp hw 0
 
 Send ipv6 packet with valid checksum and check there's no chksum error counter
 increased.
diff --git a/tests/TestSuite_vxlan.py b/tests/TestSuite_vxlan.py
index 1442578d..75b890ee 100644
--- a/tests/TestSuite_vxlan.py
+++ b/tests/TestSuite_vxlan.py
@@ -754,6 +754,7 @@ class TestVxlan(TestCase):
         self.dut.send_expect("set fwd csum", "testpmd>", 10)
         self.csum_set_type('outer-ip', self.recv_port)
         self.csum_set_type('udp', self.recv_port)
+        self.csum_set_type('outer-udp', self.recv_port)
         self.csum_set_type('tcp', self.recv_port)
         self.csum_set_type('sctp', self.recv_port)
         self.dut.send_expect("csum parse-tunnel on %d" %
-- 
2.33.1



More information about the dts mailing list