[DTS][PATCH V4 4/5] tests/vf_offload: dts adaptation DPDK checksum function changes
Ke Xu
ke1.xu at intel.com
Thu Dec 22 10:37:14 CET 2022
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 at intel.com>
Signed-off-by: Ke Xu <ke1.xu at 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
More information about the dts
mailing list