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 70AE6A0C41; Tue, 3 Aug 2021 08:47:20 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4009940E32; Tue, 3 Aug 2021 08:47:20 +0200 (CEST) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by mails.dpdk.org (Postfix) with ESMTP id 328DC40683 for ; Tue, 3 Aug 2021 08:47:19 +0200 (CEST) X-IronPort-AV: E=McAfee;i="6200,9189,10064"; a="277370240" X-IronPort-AV: E=Sophos;i="5.84,291,1620716400"; d="scan'208";a="277370240" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Aug 2021 23:47:17 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.84,291,1620716400"; d="scan'208";a="521110121" Received: from fmsmsx604.amr.corp.intel.com ([10.18.126.84]) by fmsmga002.fm.intel.com with ESMTP; 02 Aug 2021 23:47:17 -0700 Received: from shsmsx603.ccr.corp.intel.com (10.109.6.143) by fmsmsx604.amr.corp.intel.com (10.18.126.84) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.10; Mon, 2 Aug 2021 23:47:16 -0700 Received: from shsmsx601.ccr.corp.intel.com (10.109.6.141) by SHSMSX603.ccr.corp.intel.com (10.109.6.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.10; Tue, 3 Aug 2021 14:47:14 +0800 Received: from shsmsx601.ccr.corp.intel.com ([10.109.6.141]) by SHSMSX601.ccr.corp.intel.com ([10.109.6.141]) with mapi id 15.01.2242.010; Tue, 3 Aug 2021 14:47:14 +0800 From: "Tu, Lijuan" To: "Lin, Xueqin" , "Jiang, YuX" , "dts@dpdk.org" CC: "Jiang, YuX" Thread-Topic: [dts] [PATCH V1 1/2] test_plans/rxtx_offload: add tx offload multi_segs setting Thread-Index: AQHXhEFsqbqAFA12Y06x6p9HM4Y/8atfcyEAgAHqpTA= Date: Tue, 3 Aug 2021 06:47:14 +0000 Message-ID: <3da24fd208bf4c5a8cc6d5d3dd8cfa70@intel.com> References: <1627539383-26588-1-git-send-email-yux.jiang@intel.com> <1627539383-26588-2-git-send-email-yux.jiang@intel.com> In-Reply-To: Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-reaction: no-action dlp-version: 11.5.1.3 dlp-product: dlpe-windows x-originating-ip: [10.239.127.36] Content-Type: text/plain; charset="iso-2022-jp" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dts] [PATCH V1 1/2] test_plans/rxtx_offload: add tx offload multi_segs setting 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 Sender: "dts" > -----Original Message----- > From: dts On Behalf Of Lin, Xueqin > Sent: 2021=1B$BG/=1B(B8=1B$B7n=1B(B2=1B$BF|=1B(B 17:29 > To: Jiang, YuX ; dts@dpdk.org > Cc: Jiang, YuX > Subject: Re: [dts] [PATCH V1 1/2] test_plans/rxtx_offload: add tx offload > multi_segs setting >=20 > > -----Original Message----- > > From: dts On Behalf Of Yu Jiang > > Sent: Thursday, July 29, 2021 2:16 PM > > To: dts@dpdk.org > > Cc: Jiang, YuX > > Subject: [dts] [PATCH V1 1/2] test_plans/rxtx_offload: add tx offload > > multi_segs setting > > > > add tx offload multi_segs setting > > > > Signed-off-by: Yu Jiang > Acked-by: Xueqin Lin > > --- > > test_plans/rxtx_offload_test_plan.rst | 56 > > +++++++++++++++++++++++++++++++++++ > > 1 file changed, 56 insertions(+) > > > > diff --git a/test_plans/rxtx_offload_test_plan.rst > > b/test_plans/rxtx_offload_test_plan.rst > > index 246e1e1..962ee9f 100644 > > --- a/test_plans/rxtx_offload_test_plan.rst > > +++ b/test_plans/rxtx_offload_test_plan.rst > > @@ -677,3 +677,59 @@ Test case: FVL Tx offload per-queue setting > > > > Note 1: there is no tx_offload per_queue parameter in ixgbe driver, > > so this case is just only for i40e. > > + > > +Test case: Tx offload multi_segs setting > > +=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=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 > > + > > +1. Start testpmd with "--tx-offloads=3D0x00008000" to enable tx_offloa= d > > multi_segs :: > > + > > + ./testpmd -c 0xf -n 4 -- -i --tx-offloads=3D=3D0x00008000 > > + testpmd> show port 0 tx_offload configuration > > + Tx Offloading Configuration of port 0 : > > + Port : MULTI_SEGS > > + Queue[ 0] : MULTI_SEGS > > + > > +2. Set fwd to txonly, Set the length of each segment of the TX-ONLY > > +packets, > > Set the split policy for TX packets, then start to send pkgs:: > > + > > + testpmd> set fwd txonly > > + testpmd> set txpkts 64,64 It requires packet size larger than mbuf size, else it won't use multi_segs= . > > + testpmd> set txsplit rand > > + testpmd> start > > + > > +3. Check TX-packets will not hang and continue to increase:: > > + Wait 15s or more, check TX-packets will continue to increase and > > +can be more than 300K > > + > > + testpmd> show port stats all > > + testpmd> stop > > + testpmd> quit > > + > > +4. Start testpmd again without "--tx-offloads", check multi-segs is > > +disabled by > > default:: > > + > > + ./testpmd -c 0xf -n 4 -- -i > > + testpmd> show port 0 tx_offload configuration > > + No MULTI_SEGS in Tx Offloading Configuration of ports > > + > > +5. Enable tx_offload multi_segs :: > > + testpmd> port stop all > > + testpmd> port config 0 tx_offload multi_segs on > > + testpmd> port config 1 tx_offload multi_segs on > > + testpmd> port start all > > + testpmd> show port 0 tx_offload configuration > > + Tx Offloading Configuration of port 0 : > > + Port : MULTI_SEGS > > + Queue[ 0] : MULTI_SEGS > > + > > +6. Set fwd to txonly, Set the length of each segment of the TX-ONLY > > +packets, > > Set the split policy for TX packets, then start to send pkgs:: > > + > > + testpmd> set fwd txonly > > + testpmd> set txpkts 64,64 > > + testpmd> set txsplit rand > > + testpmd> start > > + testpmd> show port stats all > > + > > +7. Check TX-packets will not hang and continue to increase:: > > + Wait 15s or more, check TX-packets will continue to increase and > > +can be more than 300K > > + > > + testpmd> show port stats all > > + testpmd> stop > > + testpmd> quit > > -- > > 2.7.4