From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by dpdk.space (Postfix) with ESMTP id 3F9E4A05D3 for ; Fri, 29 Mar 2019 09:39:57 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id DE96A2BF4; Fri, 29 Mar 2019 09:39:56 +0100 (CET) Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by dpdk.org (Postfix) with ESMTP id 834C61DB8 for ; Fri, 29 Mar 2019 09:39:55 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga106.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 29 Mar 2019 01:39:54 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.60,283,1549958400"; d="scan'208";a="333140641" Received: from compression-clc.sh.intel.com ([10.67.110.166]) by fmsmga005.fm.intel.com with ESMTP; 29 Mar 2019 01:39:53 -0700 From: Zhe To: dts@dpdk.org Cc: Zhe Wan Date: Fri, 29 Mar 2019 12:30:03 -0400 Message-Id: <1553877003-190139-1-git-send-email-zhe.wan@intel.com> X-Mailer: git-send-email 1.8.3.1 Subject: [dts] [PATCH V1] test_plans/scatter: test plan revise X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.15 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 Sender: "dts" From: Zhe Wan Signed-off-by: Zhe Wan --- test_plans/scatter_test_plan.rst | 27 ++++++++++++--------------- 1 file changed, 12 insertions(+), 15 deletions(-) diff --git a/test_plans/scatter_test_plan.rst b/test_plans/scatter_test_plan.rst index cf5e1e5..ed1aaaa 100644 --- a/test_plans/scatter_test_plan.rst +++ b/test_plans/scatter_test_plan.rst @@ -72,15 +72,15 @@ the CRC from the packet before returning it. As a whole, the following packet lengths (CRC included) must be tested to check all packet memory configurations: -#. packet length < mbuf data buffer size +1) packet length < mbuf data buffer size -#. packet length = mbuf data buffer size +2) packet length = mbuf data buffer size -#. packet length = mbuf data buffer size + 1 +3) packet length = mbuf data buffer size + 1 -#. packet length = mbuf data buffer size + 4 +4) packet length = mbuf data buffer size + 4 -#. packet length = mbuf data buffer size + 5 +5) packet length = mbuf data buffer size + 5 In cases 1) and 2), the hardware RX engine stores the packet data and the CRC in a single buffer. @@ -101,21 +101,18 @@ Assuming that ports ``0`` and ``1`` of the test target are directly connected to a Traffic Generator, launch the ``testpmd`` application with the following arguments:: - ./build/app/testpmd -cffffff -n 3 -- -i --rxd=1024 --txd=1024 \ - --burst=144 --txpt=32 --txht=8 --txwt=8 --txfreet=0 --rxfreet=64 \ - --mbcache=200 --portmask=0x3 --mbuf-size=1024 + ./x86_64-native-linuxapp-gcc/app/testpmd -c 0x6 -n 4 \ + -- -i --mbcache=200 --mbuf-size=2048 --portmask=0x1 \ + --max-pkt-len=9000 --port-topology=loop --tx-offloads=0x00008000 The -n command is used to select the number of memory channels. It should match the number of memory channels on that setup. -Setting the size of the mbuf data buffer to 1024 makes 1025-bytes input packets -(CRC included) and larger packets to be stored in two buffers by the hardware -RX engine. - -Test Case: Mbuf 1024 traffic +Test Case: Scatter Mbuf 2048 ============================ Start packet forwarding in the ``testpmd`` application with the ``start`` command. -Send 5 packets of lengths (CRC included) 1023, 1024, 1025, 1028, and 1029. +Send 5 packets,the lengths are mbuf-size + offset (CRC included). +The offset are -1, 0, 1, 4, 5 respectively. Check that the same amount of frames and bytes are received back by the Traffic -Generator from its port connected to the target's port 1. +Generator from it's port connected to the target's port 1. -- 1.8.3.1