test suite reviews and discussions
 help / color / mirror / Atom feed
From: Ke Xu <ke1.xu@intel.com>
To: dts@dpdk.org
Cc: weiyuanx.li@intel.com, qi.fu@intel.com, lijuan.tu@intel.com,
	Ke Xu <ke1.xu@intel.com>
Subject: [DTS][PATCH V4 4/5] tests/vf_offload: dts adaptation DPDK checksum function changes
Date: Thu, 22 Dec 2022 17:37:14 +0800	[thread overview]
Message-ID: <20221222093715.116863-5-ke1.xu@intel.com> (raw)
In-Reply-To: <20221222093715.116863-1-ke1.xu@intel.com>

DPDK22.11 236bc417e2da(app/testpmd: fix MAC header in checksum forward
 engine) changes the checksum functions adds switches to control whether
 to exchange MAC address.

Modify DTS code to adapt to this change.

Signed-off-by: Weiyuan Li <weiyuanx.li@intel.com>
Signed-off-by: Ke Xu <ke1.xu@intel.com>
---
 tests/TestSuite_vf_offload.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/tests/TestSuite_vf_offload.py b/tests/TestSuite_vf_offload.py
index 8d7440a5..3d89729d 100644
--- a/tests/TestSuite_vf_offload.py
+++ b/tests/TestSuite_vf_offload.py
@@ -352,6 +352,8 @@ class TestVfOffload(TestCase):
             param="--portmask=%s " % (self.portMask) + "--enable-rx-cksum " + "",
         )
         self.vm0_testpmd.execute_cmd("set fwd csum")
+        self.vm0_testpmd.execute_cmd("csum mac-swap off 0", "testpmd>")
+        self.vm0_testpmd.execute_cmd("csum mac-swap off 1", "testpmd>")
         self.vm0_testpmd.execute_cmd("set promisc 1 on")
         self.vm0_testpmd.execute_cmd("set promisc 0 on")
 
@@ -612,6 +614,8 @@ class TestVfOffload(TestCase):
             param="--portmask=%s " % (self.portMask) + "--enable-rx-cksum " + "",
         )
         self.vm0_testpmd.execute_cmd("set fwd csum")
+        self.vm0_testpmd.execute_cmd("csum mac-swap off 0", "testpmd>")
+        self.vm0_testpmd.execute_cmd("csum mac-swap off 1", "testpmd>")
         self.vm0_testpmd.execute_cmd("set promisc 1 on")
         self.vm0_testpmd.execute_cmd("set promisc 0 on")
 
-- 
2.25.1


  parent reply	other threads:[~2022-12-22  9:39 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-12-22  9:37 [DTS][PATCH V4 0/5] add vf checksum offload and tso case for tunnel packets Ke Xu
2022-12-22  9:37 ` [DTS][PATCH V4 1/5] tests/vf_offload: fix 2 typos and a bug Ke Xu
2022-12-22  9:37 ` [DTS][PATCH V4 2/5] tests/vf_offload: add vf checksum hw offload case for tunneling packets Ke Xu
2022-12-22  9:37 ` [DTS][PATCH V4 3/5] tests/vf_offload: add vf tso " Ke Xu
2022-12-22  9:37 ` Ke Xu [this message]
2022-12-22  9:37 ` [DTS][PATCH V4 5/5] tests/vf_offload: add new method to anayse tunnel packets Ke Xu

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=20221222093715.116863-5-ke1.xu@intel.com \
    --to=ke1.xu@intel.com \
    --cc=dts@dpdk.org \
    --cc=lijuan.tu@intel.com \
    --cc=qi.fu@intel.com \
    --cc=weiyuanx.li@intel.com \
    /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).