[V1] test_plans/pmd_test_plan: supplement the test plan

Message ID 20221129011434.1033425-1-hongbox.li@intel.com (mailing list archive)
State Superseded
Headers
Series [V1] test_plans/pmd_test_plan: supplement the test plan |

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 fail Testing issues
ci/Intel-dts-suite-test warning SKIPPED

Commit Message

Li, HongboX Nov. 29, 2022, 1:14 a.m. UTC
  the case of pmd/checksum_checking only cover in testcase not in test plan. so supplement the test plan.

Signed-off-by: Hongbo Li <hongbox.li@intel.com>
---
 test_plans/pmd_test_plan.rst | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)
  

Patch

diff --git a/test_plans/pmd_test_plan.rst b/test_plans/pmd_test_plan.rst
index c371edb1..4d3c1cb7 100644
--- a/test_plans/pmd_test_plan.rst
+++ b/test_plans/pmd_test_plan.rst
@@ -73,6 +73,24 @@  Test Case: Packet Checking
    which will be forwarded by the DUT. The test checks if the packets are correctly forwarded and
    if both RX and TX packet sizes match by `show port all stats`
 
+Test Case: Checksum checking
+==========================
+
+1. Start testpmd with rxfreet=0 and set forward mode to csum::
+
+    ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 1-2 -n 4 -a 0000:18:00.0 -a 0000:1b:00.0 --file-prefix=dpdk_2179994_20221121150432    -- -i --portmask=0x3 --enable-rx-cksum --disable-rss --rxd=1024 --txd=1024 --rxfreet=0
+    testpmd> set fwd csum
+    testpmd> start
+
+2. The tester sends 4 messages with error checksum, and check whether the message is correctly forwarded by DUT::
+
+    sendp([Ether(dst=00:11:22:33:44:55, src="52:00:00:00:00:00")/IP(len=46)/UDP(chksum=0x1)/Raw(load="P"*18)], iface="ens9", count=4)
+
+3. Stop testpmd and check whether the l4 checksum error reported by the Rx port is equal to 4.
+
+4. change the value of "rxfreet"(0, 8, 16, 32, 64, 128), and start testpmd, repeat step 1-3, check the result is same.
+
+
 Test Case: Packet Checking in scalar mode
 =========================================