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 BF044A00E6 for ; Mon, 15 Apr 2019 23:09:26 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 6E85C1B3FD; Mon, 15 Apr 2019 23:09:26 +0200 (CEST) Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by dpdk.org (Postfix) with ESMTP id C311B1B3FC for ; Mon, 15 Apr 2019 23:09:24 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga104.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 15 Apr 2019 14:09:23 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.60,355,1549958400"; d="scan'208";a="134601532" Received: from fmsmsx103.amr.corp.intel.com ([10.18.124.201]) by orsmga008.jf.intel.com with ESMTP; 15 Apr 2019 14:09:23 -0700 Received: from FMSMSX109.amr.corp.intel.com (10.18.116.9) by FMSMSX103.amr.corp.intel.com (10.18.124.201) with Microsoft SMTP Server (TLS) id 14.3.408.0; Mon, 15 Apr 2019 14:09:23 -0700 Received: from shsmsx103.ccr.corp.intel.com (10.239.4.69) by fmsmsx109.amr.corp.intel.com (10.18.116.9) with Microsoft SMTP Server (TLS) id 14.3.408.0; Mon, 15 Apr 2019 14:09:22 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.164]) by SHSMSX103.ccr.corp.intel.com ([169.254.4.93]) with mapi id 14.03.0415.000; Tue, 16 Apr 2019 05:09:20 +0800 From: "Tu, Lijuan" To: "Wan, Zhe" , "dts@dpdk.org" CC: "Wan, Zhe" Thread-Topic: [dts] [PATCH V2] test_plans/scatter: test plan revise Thread-Index: AQHU8D52UfCKMeosWUaQZ53thyiCnqY9vmvA Date: Mon, 15 Apr 2019 21:09:19 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BA62512@SHSMSX101.ccr.corp.intel.com> References: <1554998444-58486-1-git-send-email-zhe.wan@intel.com> In-Reply-To: <1554998444-58486-1-git-send-email-zhe.wan@intel.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 11.0.600.7 dlp-reaction: no-action x-ctpclassification: CTP_NT x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiZTJjYzcyOTUtOGQ0Ni00YmZjLTg3MzctMDE1ZGJiOWJjODZiIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiTm5ZSmorN1pkNnU4bk1lTFB0S1paU1Jydk4xdTdhM05uVjV0VnVzQmdSTnduSUdSTXBTTkc0Mm5vUnF2WUxZYSJ9 x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dts] [PATCH V2] 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" Applied with format changed. > -----Original Message----- > From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of Zhe > Sent: Thursday, April 11, 2019 9:01 AM > To: dts@dpdk.org > Cc: Wan, Zhe > Subject: [dts] [PATCH V2] test_plans/scatter: test plan revise >=20 > From: Zhe Wan >=20 > Signed-off-by: Zhe Wan > --- > test_plans/scatter_test_plan.rst | 30 ++++++++++++++++-------------- > 1 file changed, 16 insertions(+), 14 deletions(-) >=20 > diff --git a/test_plans/scatter_test_plan.rst > b/test_plans/scatter_test_plan.rst > index cf5e1e5..a7c337b 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 t= o > check all packet memory configurations: >=20 > -#. packet length < mbuf data buffer size > +1) packet length < mbuf data buffer size >=20 > -#. packet length =3D mbuf data buffer size > +2) packet length =3D mbuf data buffer size >=20 > -#. packet length =3D mbuf data buffer size + 1 > +3) packet length =3D mbuf data buffer size + 1 >=20 > -#. packet length =3D mbuf data buffer size + 4 > +4) packet length =3D mbuf data buffer size + 4 >=20 > -#. packet length =3D mbuf data buffer size + 5 > +5) packet length =3D mbuf data buffer size + 5 >=20 > In cases 1) and 2), the hardware RX engine stores the packet data and th= e > CRC in a single buffer. > @@ -101,21 +101,23 @@ Assuming that ports ``0`` and ``1`` of the test > target are directly connected to a Traffic Generator, launch the ``testp= md`` > application with the following > arguments:: >=20 > - ./build/app/testpmd -cffffff -n 3 -- -i --rxd=3D1024 --txd=3D1024 \ > - --burst=3D144 --txpt=3D32 --txht=3D8 --txwt=3D8 --txfreet=3D0 --rxfree= t=3D64 \ > - --mbcache=3D200 --portmask=3D0x3 --mbuf-size=3D1024 > + ./x86_64-native-linuxapp-gcc/app/testpmd -c 0x6 -n 4 -- -i > + --mbcache=3D200 \ > + --mbuf-size=3D2048 --portmask=3D0x1 --max-pkt-len=3D9000 > + --port-topology=3Dloop \ --tx-offloads=3DDEV_TX_OFFLOAD_MULTI_SEGS >=20 > The -n command is used to select the number of memory channels. It > should match the number of memory channels on that setup. >=20 > -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. > +DEV_TX_OFFLOAD_MULTI_SEGS is a TX offload capability, means device > +supports multi segment send. Defined in DPDK code > lib/librte_ethdev/rte_ethdev.h. >=20 > -Test Case: Mbuf 1024 traffic > +#define DEV_TX_OFFLOAD_MULTI_SEGS 0x00008000 > + > +Test Case: Scatter Mbuf 2048 > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D >=20 > Start packet forwarding in the ``testpmd`` application with the ``start`= ` > command. > -Send 5 packets of lengths (CRC included) 1023, 1024, 1025, 1028, and 102= 9. > +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