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 C684DA0C41; Mon, 2 Aug 2021 11:29:27 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B839C40143; Mon, 2 Aug 2021 11:29:27 +0200 (CEST) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by mails.dpdk.org (Postfix) with ESMTP id 90D8640140 for ; Mon, 2 Aug 2021 11:29:25 +0200 (CEST) X-IronPort-AV: E=McAfee;i="6200,9189,10063"; a="213410587" X-IronPort-AV: E=Sophos;i="5.84,288,1620716400"; d="scan'208";a="213410587" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Aug 2021 02:29:24 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.84,288,1620716400"; d="scan'208";a="636186028" Received: from fmsmsx605.amr.corp.intel.com ([10.18.126.85]) by orsmga005.jf.intel.com with ESMTP; 02 Aug 2021 02:29:24 -0700 Received: from fmsmsx601.amr.corp.intel.com (10.18.126.81) by fmsmsx605.amr.corp.intel.com (10.18.126.85) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.4; Mon, 2 Aug 2021 02:29:23 -0700 Received: from FMSEDG603.ED.cps.intel.com (10.1.192.133) 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 via Frontend Transport; Mon, 2 Aug 2021 02:29:23 -0700 Received: from NAM02-DM3-obe.outbound.protection.outlook.com (104.47.56.49) by edgegateway.intel.com (192.55.55.68) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2242.10; Mon, 2 Aug 2021 02:29:23 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=EwaeqjGXaAzsUDhWEgwaVXqrv4hKva0nfE9vwjqFlkREu3oLVuTe6POw5xdExQzxa5jkS4vbu/8GP1kmj4QyIthcRZSOTDGzyIol43GXmA6nwWcfVAB0I05oJP7KeahHg63knut8N/K25VbA84tnJ1B/M6ApXE3W74tiPO9Mf9hwYcrqaLLZ4cTCJjXZRIuOPoYQx9cZuJmHlDelrpg4Ec40Z2FxnmUuzkp1WSw4ko3/jr8ZVZvczckJtVFsn4ztMhBsQA8BnP5wIadk3FMh9EaFOQ/NpEojirZUIZDAPDro2N4odzcZC1P2Vom8+ofM6VC0B7TAfojTMcqlr8AJ5A== 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=G7la+9qnlFtioFKesDLLiHk+/fLuKjXjD9mBS37Gy9Y=; b=L79D9BIt0DQAo6cM5W3OqMa9VHbNaF7VVAH1Gi2x0XHdg3dnmgsm8Ig9nl0dPofv1G40roVcGUdlz/H5THtTsdPLbGZf+MJfM15/k//WO0OVpM2R7Ux7LRh/rYaEqv6tX83ggD6MADXr+EG9dC+WnxoI4LpsJp+2Py9euh0dqbgzCIluB4Xx+5Z/6o7DxlnKlNXXvMFGiLiGURUHAf2BICWlXzdpBmKFHCBCbGAqAl5R2ZUyPESEAWxt/48dTGprK30S79WBomFAMPbJlG4MBzav3O7IgeLk82V+LD+ZB/X/8FhZgrYOtHdyjOfQzOjHR2OtBG50ZdbRh1vGTfLOGA== 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=G7la+9qnlFtioFKesDLLiHk+/fLuKjXjD9mBS37Gy9Y=; b=Jzy5YXAasfEO8z72M2C7RfO5facW7c3xfugR8Ijnif9dC8lLHdsVGAWpSmBo4TU61wxWxmCaX+1tKrCcn7GVKDRKCj5wsD/YUrUF7drtWJoGHqqe2PMhWMXbtKfNQ4py8QiXD7hj0TmjNzx3tfDj7cPs+5BXA1/WRpASo0BmTTc= Received: from BN7PR11MB2658.namprd11.prod.outlook.com (2603:10b6:406:ae::16) by BN6PR11MB4017.namprd11.prod.outlook.com (2603:10b6:405:79::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4373.25; Mon, 2 Aug 2021 09:29:22 +0000 Received: from BN7PR11MB2658.namprd11.prod.outlook.com ([fe80::152:a489:e4ab:faf3]) by BN7PR11MB2658.namprd11.prod.outlook.com ([fe80::152:a489:e4ab:faf3%5]) with mapi id 15.20.4373.026; Mon, 2 Aug 2021 09:29:22 +0000 From: "Lin, Xueqin" To: "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+QBA Date: Mon, 2 Aug 2021 09:29:22 +0000 Message-ID: References: <1627539383-26588-1-git-send-email-yux.jiang@intel.com> <1627539383-26588-2-git-send-email-yux.jiang@intel.com> In-Reply-To: <1627539383-26588-2-git-send-email-yux.jiang@intel.com> Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: 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: 4c86d0bd-1ced-4610-6ffd-08d955980314 x-ms-traffictypediagnostic: BN6PR11MB4017: 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: TLkwQc8OlWcbC9oNrabK7n6HDRppVwgXP7zHcTD66S3ilbOdd5u2b8vxAVN4RBKz/otoVoPMaALu8YFFbw4uWj0M5Tj7Cg3B7ZZ1Kap3QSJG3K/tcIXVLTNEb0faXKtLK/1OI5g1yS6tqmx3QA6ksg/QL1/JT/SVIYar4tuqYERJ1xKtGTWHiUV4X0Ch6IfpN32kUo1FAIZ1GDOol9lV311o8+1ZwyYxlbRB67jB/ZEOFd2xJosUB+/XcT1bJ5AjwYo0T3DhHmVbwMYrf5C4SnhintaNnNzWRr0kfGLO5251JiGCo9/kfBMcPXBOTZdLPipIrRxTUKO/nfUjuD5yO7KmlkbMmeZAiLmL9+x2otxsNtPQDL14sIlDfl61o+Nl+bhRf97vxIFcuq/ViIoLAnGvf34fWii+bjVltRdeqWq4IT0K/AvNYzrcw4GaiQ6Il63ywA4KBTda9Oxa/+CkeH+ooFn+r54i5VTohmF5U05THrJyPdDoE7BzbEnWTB6Ku4xTT2lZrrbeTUXaDaD+5mdH5vhW7xG2uU5w+E28rwbEzt3XlGZvsBvj3MIJDCBOPKIivYEY0f5gnBDG0CEzi2LilDqVWScWroH0xKeePezmIbAQMR8yKiccjb+VNMTAlSSE8zhRXeITExYwxnfYbhUraGillrBoyUKjxc6SNTxLs+QoMH6bkswPxyWSJZLHjZE4w6TpazcqBRI7ptNueQ== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:BN7PR11MB2658.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(366004)(4326008)(33656002)(26005)(8936002)(55016002)(66946007)(9686003)(71200400001)(76116006)(66476007)(52536014)(66556008)(186003)(8676002)(66446008)(64756008)(83380400001)(38100700002)(107886003)(122000001)(7696005)(86362001)(316002)(508600001)(6506007)(110136005)(5660300002)(53546011)(2906002)(38070700005); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?XqfRZGEsJBb8hX7vlrh7u9IP1GFAcz+O6dksj4A7Ek5S/3nnY82kqsQe7ajE?= =?us-ascii?Q?f/y5dbU1THP9+D2Xt//bmII87X/S48MkGMkcyQRZS5VJibmi01xCNmKD4mbN?= =?us-ascii?Q?74V2JpMOi4HqgzISVr0VfMLjvpzt7ZhIAzekd3g/IzKHp9RSzM5AEIfNYDgR?= =?us-ascii?Q?CD0f6pfE/XzG+PSoNIkrcAxEGJgWdXyX2xsjTs+ONMh2DSZh4Ba8TX1iCdB6?= =?us-ascii?Q?4FI2gmi71DskTnB86v0x/vIyLSG5JWNW6iu7HwC793VwH5IzWcM6eTvbX/3E?= =?us-ascii?Q?WB7zyyfHu29eyLNNQMqxhG9a7RyGo9ziQydVk/7gbCxsDR0lpp6mNMP3TY+m?= =?us-ascii?Q?Zdd5010NMkew0ZyqtsIYwHMN80n0tEg6cchaeOiYngxPUvGIgaVC1JbNEYT4?= =?us-ascii?Q?RH+/Uy+QNWy5aGvNTTls9YyWc5tCRzElqp5q4U+qDXogEXSJ4nola0gS73gT?= =?us-ascii?Q?8hVA8Q2LjyGBdnN/85VCPlgiXEckXmkOUhGoIKgFlVIFf8i5GXgaCOmiuc0b?= =?us-ascii?Q?qF/iMG/lguImY58Zut0NSPH4u3E0TTqEEXF7/zV2Ab9ZyqHTKxztodSLckug?= =?us-ascii?Q?3phaM7XL7tPFoPG+DqsNcZx+116Z6+PBn0gYHeA9SwsZxcLSkocSUtv+RZ4D?= =?us-ascii?Q?NEfrQbcUIT069euP838xcqZOblo/99LLZge0y4dqcNWHR43vYhU4cfmqtijY?= =?us-ascii?Q?129NARbb2Z8tBSOJ0CZlbSNAd8OfGSoSW/osrf7w7GemFr3PizoMm1Co4Dr5?= =?us-ascii?Q?Fa0NBRDqvd3ldoiIaqllPAS/Ex0uMMYzHfElH/wVxo73UaqK07zTYn+uLPD2?= =?us-ascii?Q?+a/TX/coyCrmReq7N7mHsxz9UN2LnGEaMTRpXkyBNTaP3K5edShXSgdl6CWN?= =?us-ascii?Q?fdU/eybfHmm3cJQij3u9Vzo/nEWDmyI/3amsEm7kQYaxi9mp7WNSQDTF4kvx?= =?us-ascii?Q?0ESuDtgOVfLZZoY52hNfFV/qO1m/qUPqqjcmqUT3LbNIMAbcTO1qMatXgE1o?= =?us-ascii?Q?p69r8cnB9omivqakzZkeqx7eydXzbT8bBtzfkV9QpB1iECUzvkvORGeq5Afb?= =?us-ascii?Q?6WTCM8Y7vBm5aVjVYFlYmllowLu7K+FT2xks5+vqPba1pn5KoXqRwgYmuDJg?= =?us-ascii?Q?updHAE7TojUmbNdGXLUJQftMWk2AENziqHHoDqT4F0Vm5jxMxAQHpYdHpCt1?= =?us-ascii?Q?tPcMZwXOOMlBb00aMdt0RH1ESu6TtksXgT5w4pKGKtuikLO3pGnVH/v97lQ9?= =?us-ascii?Q?FsRetfBMDENYfXqZxQ6tTo56iXIZMtozAZFHVP2l95nTVXfr7zvItYt17GXR?= =?us-ascii?Q?C1foxETRwZnWN24cDb+IwIEc?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: BN7PR11MB2658.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4c86d0bd-1ced-4610-6ffd-08d955980314 X-MS-Exchange-CrossTenant-originalarrivaltime: 02 Aug 2021 09:29:22.4197 (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: r+JbAwBOQIPBAyyfzqvWJghzAUCMVx3gvdhoKDwsbJGuoZgs4SgMeOtOVXqNXMuoVJODsNLbNN3iY2W07CAr6Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR11MB4017 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: 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 >=20 > add tx offload multi_segs setting >=20 > Signed-off-by: Yu Jiang Acked-by: Xueqin Lin > --- > test_plans/rxtx_offload_test_plan.rst | 56 > +++++++++++++++++++++++++++++++++++ > 1 file changed, 56 insertions(+) >=20 > 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 >=20 > 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_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 pack= ets, > 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 > + > +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 disa= bled 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 pack= ets, > 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