test suite reviews and discussions
 help / color / mirror / Atom feed
From: Lewei Yang <leweix.yang@intel.com>
To: dts@dpdk.org
Cc: YangLewei <leweix.yang@intel.com>
Subject: [PATCH V1] tests/vxlan:Vxlan ipv6 checksum offload add set outer-udp
Date: Thu, 11 Nov 2021 14:27:54 +0000	[thread overview]
Message-ID: <20211111142754.18841-1-leweix.yang@intel.com> (raw)

From: YangLewei <leweix.yang@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@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


             reply	other threads:[~2021-11-11  6:00 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-11 14:27 Lewei Yang [this message]
2021-11-22 14:15 ` Tu, Lijuan
2021-11-23  6:20   ` Jiang, YuX
2021-11-23 13:51     ` 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=20211111142754.18841-1-leweix.yang@intel.com \
    --to=leweix.yang@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).