From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id A7D26A0543; Tue, 6 Dec 2022 09:39:25 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7DA804021D; Tue, 6 Dec 2022 09:39:25 +0100 (CET) Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by mails.dpdk.org (Postfix) with ESMTP id EEFF840156 for ; Tue, 6 Dec 2022 09:39:23 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1670315964; x=1701851964; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=RdWkDWAnYswxovLIyig+A2qB78I4b2IYQb3kRkpjyBM=; b=TXPzhdyKNnSEsZIK/1TpNern63LpIAlg/K2Ql4v3nqQMVVTnvW3HS4eZ hCZIErsZkZORuF+XBtcPlDBtWdy688nFE6z3bGS85JK4tunu7nAlcPxCF oM3GGAYU2Izhtby9SQmdQMf/ydpfFNAosxjvBAvJLVNX+wV1mLTNVPzg1 bbfmNoEfk+4Vhph9Zw7D/2+V11qrWtnBiCDGPjL+5NTkJ1kQXQa4F7mMR ZPIPzeAsZg9bd4PJbZOmHQAmL5XfvE6EVti/CtrUnl770FX8St3gBLK2P Y8WgLGhHzDrzolWJnp8MjzsZ8EfCltPzIZwhzq+Dqk9HAikCH2c7PaOFF w==; X-IronPort-AV: E=McAfee;i="6500,9779,10552"; a="315282046" X-IronPort-AV: E=Sophos;i="5.96,220,1665471600"; d="scan'208";a="315282046" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Dec 2022 00:39:22 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10552"; a="770650873" X-IronPort-AV: E=Sophos;i="5.96,220,1665471600"; d="scan'208";a="770650873" Received: from unknown (HELO localhost.localdomain) ([10.239.252.19]) by orsmga004-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Dec 2022 00:39:21 -0800 From: Hongbo Li To: dts@dpdk.org Cc: Hongbo Li Subject: [dts][PATCH V2] pmd/checksum_checking: supplement the test plan Date: Tue, 6 Dec 2022 07:36:59 +0000 Message-Id: <20221206073659.385898-1-hongbox.li@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: test suite reviews and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dts-bounces@dpdk.org the case of pmd/checksum_checking only cover in testcase not in test plan. so supplement the test plan. Signed-off-by: Hongbo Li --- v2: -Expected results are added and formatted test_plans/pmd_test_plan.rst | 37 ++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/test_plans/pmd_test_plan.rst b/test_plans/pmd_test_plan.rst index c371edb1..ca2709a3 100644 --- a/test_plans/pmd_test_plan.rst +++ b/test_plans/pmd_test_plan.rst @@ -73,6 +73,43 @@ 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. + + ---------------------- Forward statistics for port 0 ---------------------- + RX-packets: 0 RX-dropped: 0 RX-total: 0 + Bad-ipcsum: 0 Bad-l4csum: 0 Bad-outer-l4csum: 0 + Bad-outer-ipcsum: 0 + TX-packets: 4 TX-dropped: 0 TX-total: 4 + ---------------------------------------------------------------------------- + + ---------------------- Forward statistics for port 1 ---------------------- + RX-packets: 4 RX-dropped: 0 RX-total: 4 + Bad-ipcsum: 0 Bad-l4csum: 4 Bad-outer-l4csum: 0 + Bad-outer-ipcsum: 0 + TX-packets: 0 TX-dropped: 0 TX-total: 0 + ---------------------------------------------------------------------------- + + +++++++++++++++ Accumulated forward statistics for all ports+++++++++++++++ + RX-packets: 4 RX-dropped: 0 RX-total: 4 + TX-packets: 4 TX-dropped: 0 TX-total: 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 ========================================= -- 2.25.1