[V1,2/2] tests/dpdk_gso_lib: modify testsuite by DPDK changed

Message ID 20221116020931.610036-1-weix.ling@intel.com (mailing list archive)
State Accepted
Headers
Series modify dpdk_gso_lib |

Checks

Context Check Description
ci/Intel-dts-format-test success Testing OK
ci/Intel-dts-pylama-test success Testing OK
ci/Intel-dts-doc-test success Testing OK
ci/Intel-dts-suite-test warning SKIPPED

Commit Message

Ling, WeiX Nov. 16, 2022, 2:09 a.m. UTC
  As DPDK commit 236bc417(app/testpmd: fix MAC header in checksum
forward engine),need to add `csum mac-swap off <port_id>` steps
in testsuite.

Signed-off-by: Wei Ling <weix.ling@intel.com>
---
 tests/TestSuite_dpdk_gso_lib.py | 2 ++
 1 file changed, 2 insertions(+)
  

Comments

Tu, Lijuan Nov. 30, 2022, 6:39 a.m. UTC | #1
On Wed, 16 Nov 2022 10:09:31 +0800, Wei Ling <weix.ling@intel.com> wrote:
> As DPDK commit 236bc417(app/testpmd: fix MAC header in checksum
> forward engine),need to add `csum mac-swap off <port_id>` steps
> in testsuite.
> 
> Signed-off-by: Wei Ling <weix.ling@intel.com>


Series applied, thanks
  

Patch

diff --git a/tests/TestSuite_dpdk_gso_lib.py b/tests/TestSuite_dpdk_gso_lib.py
index 77f1b4b4..c989bfc8 100644
--- a/tests/TestSuite_dpdk_gso_lib.py
+++ b/tests/TestSuite_dpdk_gso_lib.py
@@ -106,6 +106,8 @@  class TestDPDKGsoLib(TestCase):
         self.vhost_user = self.dut.new_session(suite="user")
         self.vhost_user.send_expect(self.testcmd_start, "testpmd> ", 120)
         self.vhost_user.send_expect("set fwd csum", "testpmd> ", 120)
+        self.vhost_user.send_expect("csum mac-swap off 0", "testpmd> ", 120)
+        self.vhost_user.send_expect("csum mac-swap off 1", "testpmd> ", 120)
         self.vhost_user.send_expect("stop", "testpmd> ", 120)
         if mode == 0:
             self.vhost_user.send_expect("port stop 0", "testpmd> ", 120)