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 661F8A0A0C; Tue, 3 Aug 2021 12:24:53 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 3C8B640E3C; Tue, 3 Aug 2021 12:24:53 +0200 (CEST) Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by mails.dpdk.org (Postfix) with ESMTP id BD92540E32 for ; Tue, 3 Aug 2021 12:24:50 +0200 (CEST) X-IronPort-AV: E=McAfee;i="6200,9189,10064"; a="193239285" X-IronPort-AV: E=Sophos;i="5.84,291,1620716400"; d="scan'208";a="193239285" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Aug 2021 03:24:49 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.84,291,1620716400"; d="scan'208";a="436977966" Received: from orsmsx605.amr.corp.intel.com ([10.22.229.18]) by orsmga002.jf.intel.com with ESMTP; 03 Aug 2021 03:24:49 -0700 Received: from orsmsx606.amr.corp.intel.com (10.22.229.19) by ORSMSX605.amr.corp.intel.com (10.22.229.18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.4; Tue, 3 Aug 2021 03:24:48 -0700 Received: from ORSEDG602.ED.cps.intel.com (10.7.248.7) by orsmsx606.amr.corp.intel.com (10.22.229.19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.10 via Frontend Transport; Tue, 3 Aug 2021 03:24:48 -0700 Received: from NAM04-DM6-obe.outbound.protection.outlook.com (104.47.73.45) by edgegateway.intel.com (134.134.137.103) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2242.10; Tue, 3 Aug 2021 03:24:47 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=jDsua8gsNF29joZAWPN+82QpAorlznoclM9erjnb4LlqWi9t4fdqD6qR2LfT1Kld+f+th4+1/GrGBitAH6VkfU14Ibj3h78O0ehu6IW6x15GlWxYyrHndj/e97jyyCU/AlUN7cXaxxxV21Uvnlen/SnX0PUJ+2TADh5kmg/rS3WHJgj8Z7YPWZ7873pCYVlymIxybkUflP6//Sub8zG/rM5/BZkbjehK4X9vWvceA/S/PEFZxP2Kak+mbFJUo9rqwkVtBGimI41Oa3TTTQ373RkBwGzOpnouSx6Oxg4/f7sADAGpfV7F7XMHtDSqMdYuJgRTyj+AVrSz3Bs3rgt8vw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=UDEv1c0OKIQf6SYyMwQYsSpxvs57NbyuJnW+26EtziM=; b=Vgza9npmIJlgxO7k/8nhMPyeV5NkEnaY1K+LcqcotWDiqpj9SE4csqJ7x5wpouJvI2Y/fKMb7kOYIqmoR3hzggzZzQduliehFdeHdNb/D22PC3zHJivPXXrnlEJ2voEb/bAa5EZ64APF++2gOU98yy/Dsdv11Rsfx+9vTD5ARDO0vjPIv34ykbeifeNpKNXhTLrC5JP9pvjVyc7GvqCAf7Oh4JULa4RS5rohC6Q83hKXRHXVdq3o56+tRwCQiooh+uslD1MY3SCK35KDruSHq5A34MNN3NvOrBXm8BgcUw/bmobsJBu0QlO4WhuxBkvDxLLfNKWheCj7tLu1ZDjxmg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.onmicrosoft.com; s=selector2-intel-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=UDEv1c0OKIQf6SYyMwQYsSpxvs57NbyuJnW+26EtziM=; b=v7DuJGdtAilYkiTXRwn2AtWhUOjoJ9uv2Xucplh8QbKS9LgaSx7n6sMqXQOUjij8nnDfvAgdlcp/tTQ9fdxLt7JcybG1n8KZyS2UiRKuWXUqY0CV7kpySpQate0Wh+BM3hrRmWXYTJlsrRoS3bhUpy+jt+OvEG8u3bJNJ+4AuW8= Received: from BYAPR11MB2661.namprd11.prod.outlook.com (2603:10b6:a02:c5::20) by BYAPR11MB2582.namprd11.prod.outlook.com (2603:10b6:a02:cb::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4373.24; Tue, 3 Aug 2021 10:24:44 +0000 Received: from BYAPR11MB2661.namprd11.prod.outlook.com ([fe80::29ab:37cb:8f43:cd9f]) by BYAPR11MB2661.namprd11.prod.outlook.com ([fe80::29ab:37cb:8f43:cd9f%6]) with mapi id 15.20.4373.026; Tue, 3 Aug 2021 10:24:43 +0000 From: "Lin, Xueqin" To: "Tu, Lijuan" , "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: AQHXhEFyKcAwuED+o0WE6LQHRSFQ8Ktf+QBAgAFlRQCAADyWMA== Date: Tue, 3 Aug 2021 10:24:43 +0000 Message-ID: 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: <3da24fd208bf4c5a8cc6d5d3dd8cfa70@intel.com> Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-version: 11.5.1.3 dlp-reaction: no-action dlp-product: dlpe-windows authentication-results: intel.com; dkim=none (message not signed) header.d=none;intel.com; dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: bee0a902-69ac-4b85-4dc6-08d95668e938 x-ms-traffictypediagnostic: BYAPR11MB2582: x-ld-processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:3383; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: aAKNCHzEY/NVpOruJESs2p1mwz+yCGaeoJX+Fdq2eqecFr29yyVGV+1MD1RlkxfoeY2fFTWTTm+6zUZSAZ58L27mnA9nABowksMt1vSstecH5Onjmoq4+mbv9Gcg6rDzoaDBJq35hGZLVKGgA6hlwxaC7Gg6OnJgg22CuAwCHXe0Kcltb7Z2pTcdw3OFyAheXgo/flEZMy3dLwfwNYpVVSqNoxe0BVu62vewgGnfgbsymiFII7Ze0qopY6Aue77mwkHAneB1tLz/hH0T3yDMnAubM3EXa83FYXX60xGNBaFIdJzKZiEp80owvwOk4rVceCYrNW374CvpncstpzfpdNFYYEaLlWgNgZfYGJsv4N8qQqy4v0hPkclklf3XlgPi43qcn2zqhrVQqUXNeRYauSx54Qed3gDFiiecSaw9oh1GsRAggX90OYfitqLVUzRx6ifA99zYZo6RMSo9yZR8gQAYGaxGjCuf26TOVTQ+Wx89F+OdHUsaDOAExGR8hKL2lsqOPliQey7RHtEKKpDCLNc7l86zvSx0llh/0VOWv5nU+HBzCXcRPAWi1TB4QVDJCZhUQJV7YPZR0HuFIaOdeGIEOdCyH4ot+xmOjPdZr2XsznxdyO6upteRTWzuKY/uboeE+bRnpi6EGVdp/gwU0ISgmjpTvO1UQScqu+tR+nlmLP/3i4FKywQTvLA6Jbyw2m2IkoBNWfJsMdPEFnKarQ== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:BYAPR11MB2661.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(376002)(366004)(346002)(396003)(39860400002)(136003)(186003)(55016002)(83380400001)(8676002)(33656002)(86362001)(52536014)(5660300002)(478600001)(110136005)(71200400001)(316002)(64756008)(9686003)(66446008)(76116006)(66556008)(66476007)(66946007)(8936002)(53546011)(6506007)(122000001)(4326008)(107886003)(7696005)(38070700005)(26005)(2906002)(38100700002); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?iso-2022-jp?B?WTRJaVl2Rm5RczBIcXk3QnZRYURIZ0xtb000SmlJZzEvWEtYc055Rk9L?= =?iso-2022-jp?B?SUFxNUJycmNFWVJjbWcySU11VWhiemlhZWdzOS8wRS9ZVUVGanNRanlD?= =?iso-2022-jp?B?Uk9RQTB3dVJlWml0RmcwZkJmQ0ZhVzhqd3lZNzB0aXZFL0JQd1VGVkF3?= =?iso-2022-jp?B?WFQrV3JueHF5TmdZWWwrYVAxSW13WHZHOE02SWRyU0h6MlFOQUpaVlIy?= =?iso-2022-jp?B?MWh5djIvUTdmd1Y0NmR3eml4MHpTbVowT3djNWFBbkY2YzQ3RDZzNWIx?= =?iso-2022-jp?B?OHc0cURTaGxQdUNLVzYxZzdvVElhT3hLRTBmcVZ6M0pWR2JsdFdvTHhw?= =?iso-2022-jp?B?VThMWUQxbnlDMElqUlllOFdQcHVGNEpVU3RVekc4ODNxTkJJdUxzSHh3?= =?iso-2022-jp?B?d21uMngwUWV3MUtpYVFybDVLTmtjYWZNbmVQSmlOczRlaXljcFZtcW1j?= =?iso-2022-jp?B?M1dTR0d0SmVybklBSVhTbUdCNFdjM2pmZE9KeDRxd2dOVjZ2TTBQWFg2?= =?iso-2022-jp?B?eTByMm1sWkNzQk53emc0L29laFZTaExNS08yTVdkRndsQkhHZTQyaVRV?= =?iso-2022-jp?B?ckdSb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?VXk0RHJxbjJYbnJ1YTdFc2JybDBiT1JLNTluOGVUYWRQZkJ4ODd6ZDJG?= =?iso-2022-jp?B?dDhwR3g4VkpmVFdUL3dKVitTYlNYZHQvL2dKZ3RDYWRNb3ZOUDdkOU0r?= =?iso-2022-jp?B?blRwNnY0U2l0YThQblo1ckRTam41cktRRVI1T056Znc2QUhOQ1VOKzNE?= =?iso-2022-jp?B?WXlCdlhBSGpVOWdLQ3VveVF2TzlQekhBMUhrRHRCd1U4MDVFV3hXYnhQ?= =?iso-2022-jp?B?VXlkalNYd2N5WThnNWhxYVdXc2NxYzVFc1IyVVptNlZnWFp5Y25WZ0FL?= =?iso-2022-jp?B?VWhKVHEyS2lMM2F2Y2dBZ0JCYzVJRFJlUjJhcS9wSlU3RzVQb2x2aVNU?= =?iso-2022-jp?B?bjFOL21XS0xQYjlESzg3clVUNDR4bUcvOHZGOWswYVJidWt5MDZhRGVp?= Content-Type: text/plain; charset="iso-2022-jp" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: BYAPR11MB2661.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: bee0a902-69ac-4b85-4dc6-08d95668e938 X-MS-Exchange-CrossTenant-originalarrivaltime: 03 Aug 2021 10:24:43.7725 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: rsEJQj70NyZ40ost8pV+QcK75BjR2bD+KzqfLEOiabNXDjrLyKumurbqXNN/YuXeF3rr2mQn0lB35ybRO0PjgA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR11MB2582 X-OriginatorOrg: intel.com 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: 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 >=20 >=20 >=20 > > -----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 drive= r, > > > 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 >=20 > It requires packet size larger than mbuf size, else it won't use multi_se= gs. Vector path doesn't support multi-segment packet transmit, only normal path= supports multi-segment packet transmit. Use 'port config 0 tx_offload multi_segs on' to enable multi segment offloa= d first. >=20 > > > + 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 >=20