diff mbox series

[V3,02/10] test_plans/vf_offload: update dts code for dpdk csum change

Message ID 20220830024740.26250-2-weiyuanx.li@intel.com (mailing list archive)
State Accepted
Headers show
Series [V3,01/10] tests/vf_offload: update dts code for dpdk csum change | expand

Commit Message

Weiyuan Li Aug. 30, 2022, 2:47 a.m. UTC
According to dpdk commit 9b4ea7ae77fa(app/testpmd: revert MAC update in checksum forwarding) modify
the script adapt to this chagne.

1. Modify VF case to enable promisc.
2. Modify PF case to send packet dst mac is random.

Signed-off-by: Weiyuan Li <weiyuanx.li@intel.com>
---
Tested-by: Jiale Song < songx.jiale@intel.com>

v2:
-Enable promisc mode in testpmd
v3:
-Test plan csum add enable promisc mode

 test_plans/vf_offload_test_plan.rst | 9 +++++++++
 1 file changed, 9 insertions(+)

Comments

Peng, Yuan Aug. 30, 2022, 3:06 a.m. UTC | #1
Acked-by Peng, Yuan <yuan.peng@intel.com>

-----Original Message-----
From: Weiyuan Li <weiyuanx.li@intel.com> 
Sent: Tuesday, August 30, 2022 10:48 AM
To: dts@dpdk.org
Cc: Li, WeiyuanX <weiyuanx.li@intel.com>; Jiale, SongX <songx.jiale@intel.com>
Subject: [dts][PATCH V3 02/10] test_plans/vf_offload: update dts code for dpdk csum change

According to dpdk commit 9b4ea7ae77fa(app/testpmd: revert MAC update in checksum forwarding) modify the script adapt to this chagne.

1. Modify VF case to enable promisc.
2. Modify PF case to send packet dst mac is random.

Signed-off-by: Weiyuan Li <weiyuanx.li@intel.com>
---
Tested-by: Jiale Song < songx.jiale@intel.com>

v2:
-Enable promisc mode in testpmd
v3:
-Test plan csum add enable promisc mode
diff mbox series

Patch

diff --git a/test_plans/vf_offload_test_plan.rst b/test_plans/vf_offload_test_plan.rst
index 522fc017..ba490e06 100644
--- a/test_plans/vf_offload_test_plan.rst
+++ b/test_plans/vf_offload_test_plan.rst
@@ -17,6 +17,11 @@  to the device under test::
    modprobe vfio-pci
    usertools/dpdk-devbind.py --bind=vfio-pci device_bus_id
 
+IP link set VF trust on and spoofchk off on DUT::
+
+   ip link set $PF_INTF vf 0 trust on
+   ip link set $PF_INTF vf 0 spoofchk off
+
 Assuming that ports ``0`` and ``1`` are connected to a traffic generator,
 enable hardware rx checksum offload with "--enable-rx-cksum",
 launch the ``testpmd`` with the following arguments::
@@ -71,6 +76,7 @@  Enable the IPv4/UDP/TCP/SCTP HW checksum offload on port 0::
   testpmd> csum set udp hw 0
   testpmd> csum set sctp hw 0
   testpmd> port start all
+  testpmd> set promisc 0 on
   testpmd> start
     csum packet forwarding - CRC stripping disabled - packets/burst=32
     nb forwarding cores=1 - nb forwarding ports=10
@@ -110,6 +116,7 @@  Enable the IPv4/UDP/TCP/SCTP SW checksum offload on port 0::
   testpmd> csum set udp sw 0
   testpmd> csum set sctp sw 0
   testpmd> port start all
+  testpmd> set promisc 0 on
   testpmd> start
     csum packet forwarding - CRC stripping disabled - packets/burst=32
     nb forwarding cores=1 - nb forwarding ports=10
@@ -154,6 +161,7 @@  and checksum on rx port. The test commands is below::
   testpmd> csum set udp hw 0
   testpmd> csum set sctp hw 0
   testpmd> port start all
+  testpmd> set promisc 0 on
   testpmd> set fwd csum
 
   # Enable TSO on tx port
@@ -185,6 +193,7 @@  Launch the userland ``testpmd`` application on DUT as follows::
   testpmd> csum set tcp hw 0
   testpmd> csum set udp hw 0
   testpmd> csum set sctp hw 0
+  testpmd> set promisc 0 on
   testpmd> port start all
 
   # Enable TSO on tx port