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 5D14DA0093; Tue, 29 Nov 2022 03:16:01 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 345474021E; Tue, 29 Nov 2022 03:16:01 +0100 (CET) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by mails.dpdk.org (Postfix) with ESMTP id 656FD40042 for ; Tue, 29 Nov 2022 03:15:59 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1669688159; x=1701224159; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=7TilMoTEaRmhJELN0qmft3oWtr97+smzynbMf3TutlA=; b=MQ4dvPzFrqCbATEaIlqiMNi8HyalG9y92GithwhDiMtwo6Ew6rt3hUbt 9+5GslwIjy5FP62D77pMv186iL3jfD1OYxlew8DiVWydHmaR7jm69w5Su SggKk3Me6sPphDPVXy0+w2vUniRq2xG7cBey7AyS3G2W5JQVpkvXnqq9K sXIWLrQUep20ee01BOjwxdo02lkS3eTF+minHejr4ekRZbI1ETBGQpflZ 5k1WD1ya1Yu9zf10fEofH9mAweCb0140a5w+p1iLsJtnAg38WSHUyQDBQ uCY2E4z8Fn6se/53DRBOrrRBuDv8a78rwhrfzcBL3WbKoyt1Y0jSCZwEl g==; X-IronPort-AV: E=McAfee;i="6500,9779,10545"; a="379262011" X-IronPort-AV: E=Sophos;i="5.96,201,1665471600"; d="scan'208";a="379262011" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Nov 2022 18:15:58 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10545"; a="768267273" X-IronPort-AV: E=Sophos;i="5.96,201,1665471600"; d="scan'208";a="768267273" Received: from unknown (HELO localhost.localdomain) ([10.239.252.19]) by orsmga004-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Nov 2022 18:15:56 -0800 From: Hongbo Li To: dts@dpdk.org Cc: Hongbo Li Subject: [dts][PATCH V1] test_plans/pmd_test_plan: supplement the test plan Date: Tue, 29 Nov 2022 01:14:34 +0000 Message-Id: <20221129011434.1033425-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 --- test_plans/pmd_test_plan.rst | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) 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 ========================================= -- 2.25.1