From patchwork Tue Nov 29 01:58:05 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Li, HongboX" X-Patchwork-Id: 120218 Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 4763FA0093; Tue, 29 Nov 2022 04:00:10 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 313094021E; Tue, 29 Nov 2022 04:00:10 +0100 (CET) Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by mails.dpdk.org (Postfix) with ESMTP id AE18140042 for ; Tue, 29 Nov 2022 04:00:08 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1669690808; x=1701226808; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=52PuVNLVB/+W2y87rRdlQtVqz+J1bL7dy7yoFeqymUo=; b=RGMz97cQtiqXe5uCBdFuJ4AbX4SUU15phmVFku6oEmjyCk3V0TdPOncF 2l7/AErc0vGegRO2+aFx76LRD5AiqsyhZuaSU8ITjW0Avm2D1gM8/qxjx 2fb7nFmBh58NV6nEh5+TKxJvzz5fkuAtRO5jvlNlXzkKXHwOVbv74KPvA YhWfSby+sBNZATn9yik9eUmlQNcNsvnmD7xUZd/Ra3r9Bp40ZpZl8eM4u +c21XvBnhskbE9lNowxrsaZoHF5kBAngm1F9hlwa5Swyzn+182K6UEgpr g8xrWCXXVHRUJXW48ZhOKt00GIT75GVcH+yfQ+PpmaYumMtn901eDWYOP Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10545"; a="295383680" X-IronPort-AV: E=Sophos;i="5.96,202,1665471600"; d="scan'208";a="295383680" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Nov 2022 19:00:07 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10545"; a="643627083" X-IronPort-AV: E=Sophos;i="5.96,202,1665471600"; d="scan'208";a="643627083" Received: from unknown (HELO localhost.localdomain) ([10.239.252.19]) by orsmga002-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Nov 2022 19:00:06 -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:58:05 +0000 Message-Id: <20221129015805.1051611-1-hongbox.li@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 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..c1760c97 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 =========================================