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 F3E86A0A0C; Tue, 3 Aug 2021 14:35:52 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E0A07411A7; Tue, 3 Aug 2021 14:35:52 +0200 (CEST) Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by mails.dpdk.org (Postfix) with ESMTP id 5776D40E3C for ; Tue, 3 Aug 2021 14:35:51 +0200 (CEST) X-IronPort-AV: E=McAfee;i="6200,9189,10064"; a="193958419" X-IronPort-AV: E=Sophos;i="5.84,291,1620716400"; d="scan'208";a="193958419" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Aug 2021 05:35:50 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.84,291,1620716400"; d="scan'208";a="441160476" Received: from fmsmsx601.amr.corp.intel.com ([10.18.126.81]) by fmsmga007.fm.intel.com with ESMTP; 03 Aug 2021 05:35:50 -0700 Received: from shsmsx605.ccr.corp.intel.com (10.109.6.215) by fmsmsx601.amr.corp.intel.com (10.18.126.81) 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 05:35:49 -0700 Received: from shsmsx601.ccr.corp.intel.com (10.109.6.141) by SHSMSX605.ccr.corp.intel.com (10.109.6.215) 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 20:35:42 +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 20:35:42 +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/8atfcyEAgAHqpTD//7cngIAApsuA Date: Tue, 3 Aug 2021 12:35:42 +0000 Message-ID: <22eef9ccdd6944bf9a2fd2c4d1eee89d@intel.com> References: <1627539383-26588-1-git-send-email-yux.jiang@intel.com> <1627539383-26588-2-git-send-email-yux.jiang@intel.com> <3da24fd208bf4c5a8cc6d5d3dd8cfa70@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: Lin, Xueqin > Sent: 2021=1B$BG/=1B(B8=1B$B7n=1B(B3=1B$BF|=1B(B 18:25 > To: Tu, Lijuan ; 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: Tu, Lijuan > > Sent: Tuesday, August 3, 2021 2:47 PM > > To: Lin, Xueqin ; 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 > > > > > > > > > -----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 > > > > > > > -----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 dri= ver, > > > > 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_offload > > > > 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. sorry, I misunderstood `set txpkts` >=20 > Vector path doesn't support multi-segment packet transmit, only normal pa= th > supports multi-segment packet transmit. > Use 'port config 0 tx_offload multi_segs on' to enable multi segment offl= oad > first. Sure, it's not care the vector path. >=20 > > > > > > + testpmd> set txsplit rand `set txpkts 64,64` means the packet has 2 segments, the first one is 64, an= d the second one is also 64. `set txsplit rand` means random segment number, here it might be 1 or 2, it= is random, so here comes the issue. If it is 1, it is only 1 segment, so it doesn't validate the MULT_SEG offlo= ad feature. Furthemore it has 50% percentage don't validate it. > > > > + 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 > > >=20