diff mbox series

[V3,09/10] test_plans/ice_iavf_fdir: update dts code for dpdk csum change

Message ID 20220830024740.26250-9-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/ice_iavf_fdir_test_plan.rst | 8 ++++++++
 1 file changed, 8 insertions(+)

Comments

Peng, Yuan Aug. 30, 2022, 3:10 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 09/10] test_plans/ice_iavf_fdir: 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>
diff mbox series

Patch

diff --git a/test_plans/ice_iavf_fdir_test_plan.rst b/test_plans/ice_iavf_fdir_test_plan.rst
index b485f899..9f6b5aaf 100644
--- a/test_plans/ice_iavf_fdir_test_plan.rst
+++ b/test_plans/ice_iavf_fdir_test_plan.rst
@@ -195,6 +195,12 @@  Prerequisites
     ip link set enp134s0f1 vf 0 mac 00:11:22:33:44:77
     ip link set enp134s0f1 vf 1 mac 00:11:22:33:44:88
 
+    If test set HW checksum and SW checksum:
+    ip link set enp24s0f0 vf 0 trust on
+    ip link set enp24s0f0 vf 0 spoofchk off
+    ip link set enp24s0f0 vf 1 trust on
+    ip link set enp24s0f0 vf 1 spoofchk off
+
    0000:86:00.0 generate 0000:86:01.0 and 0000:86:01.1
    0000:86:00.1 generate 0000:86:11.0 and 0000:86:11.1
    define 86:01.0 as vf00, 86:01.1 as vf01, 86:11.0 as vf10, 86:11.1 as vf11.
@@ -5058,6 +5064,7 @@  Subcase 1: PFCP FDIR vlan strip on HW checksum offload check
     testpmd> csum set ip hw 0
     testpmd> csum set udp hw 0
     testpmd> port start all
+    testpmd> set promisc 0 on
     testpmd> set verbose 1
     testpmd> start
 
@@ -5129,6 +5136,7 @@  subcase 2: PFCP FDIR vlan strip off SW checksum offload check
     testpmd> csum set udp sw 0
     testpmd> port start all
     testpmd> set verbose 1
+    testpmd> set promisc 0 on
     testpmd> start
 
 4. DUT create fdir rules for MAC_IPV4_PFCP_NODE/MAC_IPV4_PFCP_SESSION/MAC_IPV6_PFCP_NODE/MAC_IPV6_PFCP_SESSION with queue index and mark::