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 427B6A04A4; Fri, 4 Feb 2022 23:20:21 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D11394013F; Fri, 4 Feb 2022 23:20:20 +0100 (CET) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by mails.dpdk.org (Postfix) with ESMTP id E7A5E40041 for ; Fri, 4 Feb 2022 23:20:18 +0100 (CET) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.16.1.2/8.16.1.2) with ESMTP id 214DHMxC017611; Fri, 4 Feb 2022 14:20:15 -0800 Received: from nam12-dm6-obe.outbound.protection.outlook.com (mail-dm6nam12lp2176.outbound.protection.outlook.com [104.47.59.176]) by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3e0jvrnp9c-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 04 Feb 2022 14:20:15 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=WwZvnqyDH2HXvFMk88hL9Ly62s2GTx3/f7mH/VmDmZplTJ7hMyiYlaxOVYvlAy2g8Kr/xDn6Gt88WP3MihGf4iNlsoazbdbynhTZKXlk6mV2eeYrig+2zRtE4Q7GF0rZ3aHJnKez70MjYayDJLZ7qOeFh6GdgoRZDcF76jAN2r8AMq04PVzuYe9NmvzWNdxhJHiICmbWB6W4UEtfeFClNfdG5Airvk6pGvlDgZ6wKLdFnaQk3YXLW1bDl8aFgdj6MsiyJr7mIKLr9XEDYLdQVhDTTL90Hxh7QNRHLWLh410gyVmXTHVVrAvYRSuCqwGMlw5Ifpvxue5ObEKbfaPPAw== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=hdHCFJTZ4lQHeTO7obJ5tTLQZYJ4ykcq2qnnEflyq9E=; b=kR6P77hftpJjnOEvGsMRDFztFdWOYsIQnpZIYA587tVXviL+J14JDe16gE/ZQXSisNz4YDPdLtGJYyVX1NHG/jNwMOvRjkY2iYmiR8RaZCDZ4/WE2NXNY/n4AQcKDmXQt3D8Cz5zzgPwHWb/qziBV77vghaLCpNxamQvLzXtTaFbSCyFvNi4r2lyKTTMg9El2qrKwQdIbOWi5c9YzfAjxK0MfSEYR89nDArYPqA5pYlMa/jAzrNeCJYDhbq+4MmzkKuZE8Rpl7gTTeww4moGwp5rgHZ2F8wGIMNB0LgxlHMU/1h0KSCSW444PZ2+4zOxHuUplmH6gKOwWw1fIGdrtw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.onmicrosoft.com; s=selector1-marvell-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=hdHCFJTZ4lQHeTO7obJ5tTLQZYJ4ykcq2qnnEflyq9E=; b=WTVrVQ3OjD+eQ1K4uQg8XF8lNNqI8JnVbQUEwTmEFv/izO/Rr3a7ex4nOmlVMK+8HT88agFaTqgey96KuFbaEPZhirvxxFT1mZKB5CQrTTea7pfr2uk8gy9ZpD62KaiJ16rrIrjWe+sXGEM+T/upDRy3uxiitDxQwxG71A7oQzs= Received: from CO6PR18MB4484.namprd18.prod.outlook.com (2603:10b6:5:359::9) by BL0PR18MB2193.namprd18.prod.outlook.com (2603:10b6:207:4b::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4951.14; Fri, 4 Feb 2022 22:20:13 +0000 Received: from CO6PR18MB4484.namprd18.prod.outlook.com ([fe80::9985:c3ca:2f91:7fc]) by CO6PR18MB4484.namprd18.prod.outlook.com ([fe80::9985:c3ca:2f91:7fc%5]) with mapi id 15.20.4951.014; Fri, 4 Feb 2022 22:20:12 +0000 From: Akhil Goyal To: Akhil Goyal , "dev@dpdk.org" , "ferruh.yigit@intel.com" , "andrew.rybchenko@oktetlabs.ru" , "thomas@monjalon.net" , "olivier.matz@6wind.com" , "david.marchand@redhat.com" CC: Anoob Joseph , "matan@nvidia.com" , "konstantin.ananyev@intel.com" , "rosen.xu@intel.com" , "radu.nicolau@intel.com" , Jerin Jacob Kollanukkaran , "stephen@networkplumber.org" , "mdr@ashroe.eu" Subject: RE: [PATCH v4 1/3] ethdev: introduce IP reassembly offload Thread-Topic: [PATCH v4 1/3] ethdev: introduce IP reassembly offload Thread-Index: AQHYGhR/zwYhhY418U2BGlAB5Ep++6yD9etg Date: Fri, 4 Feb 2022 22:20:12 +0000 Message-ID: References: <20220130175935.1947730-1-gakhil@marvell.com> <20220204221334.3551574-1-gakhil@marvell.com> <20220204221334.3551574-2-gakhil@marvell.com> In-Reply-To: <20220204221334.3551574-2-gakhil@marvell.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: e411ccb5-1e6c-48e3-cf49-08d9e82c835b x-ms-traffictypediagnostic: BL0PR18MB2193:EE_ x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:8273; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: Ztl38A4BXO2gI2yT5nOpPuCTqvBzarDNDBR/FVyD3SLu8N5Ix71orxnFt5u5aKagtgVa/E2X91bEs+auYqFHXnCfasDN+JVXimjU5R9M62TzoZ7P80SIJAB2lxLKd728MHsAxC302rtsCkKqmyp9MuZct+eIn5qwv7PDYdOKiOuBjPQK7gTQKnxS57HaKbB5OG4uxizNQBj6bWMSUoLDqoigXWz7trG/bgQi+PoT4MSgb/enkJknZvtv40Sglkze/CFWY4wMdP3LK+J38yrPjMixDpkylA+bQ/Vt7hKrJTffIhzBFvTkIn25blyl4RuAWn9hk36Tnap3iDHmxfCP5466sb0eePogN9746gNnHMbR9OWakT+DJHXsHI+yDFVDqe0pjH7tTyFiYmcrTWLTZcdJX52qmRcEWt9vseuKiaDxcvHmY0Wt30hXw+Ksp48ZDSkEnSpq7VcZWKuzj31OUG8ic+ZOeLlvvNGOED20qJH2IXPAtNSJYjP3gV++hrj+gBqklp/1Aqrdb1aqVao3XtMUIkqVP7M2zkRFjGri/ZQUk+DIRTDyp1hMSnARItS0VOoCmen6PBD5Ga6uggXKjXTbNqteXh0L6jyqdOlNF8dq5dBzOyXBFLUptmv2q3kOn3FC8hBGc5hgUF+D7S+YIa+68KGqtP80/F6PYc1Wc7LDiHEgZ8fARE0QKvzBASgCxtzJmF3EuO3Q2xed57ZX0g== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:CO6PR18MB4484.namprd18.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230001)(4636009)(366004)(66476007)(66446008)(71200400001)(66946007)(4326008)(8936002)(2906002)(26005)(186003)(6506007)(9686003)(76116006)(8676002)(55236004)(7696005)(38070700005)(316002)(110136005)(33656002)(54906003)(64756008)(122000001)(55016003)(508600001)(5660300002)(38100700002)(52536014)(86362001)(83380400001)(66556008)(7416002); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?Spz8hfWM5wLV0BLbQ9XuAWZbEGD/btGqHgwqTU6MmBYmtzhDSE1xzRySCCVw?= =?us-ascii?Q?wPF/1UzvGWXr9wg/32Ex7woyaJhpyu5cDpeWVwJ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7hG7XibAC+YOh3HagXACmLnBMBpC5OLavM30quODaw1M?= =?us-ascii?Q?jopaaaUlCED5AKJTByLFx31Rw4nWA/DBRwXB4kl42nB/BBGnXXE9NsysC72a?= =?us-ascii?Q?35OD87BGbw+cMI7nF7SpfIZ061HzuHz4x79Ds3SWKb//A7VTlV7xOAljq/F/?= =?us-ascii?Q?4X5oNN727CraBOIcYlg20gBQfmlA+2d184fw94yu+sV+utlazwaodlK+1BLa?= =?us-ascii?Q?f13bvd43oMo19ttcwvYdLZoCut37SC0wHVkNA0xr+yDwjqItipPYspcC5+GP?= =?us-ascii?Q?CdqN2Gp4JGaTkrUup2mbcowzffZprIt6mu/UqGpsUcyO6tEqLn9/4NavZ09D?= =?us-ascii?Q?sBKnI+CQeuZHzd52cWrSul31fzhUCgfUVQW9tOztM4sNEg0XJM8NkfeMq4Sn?= =?us-ascii?Q?27YQsqNj95rMBNwMJ3jhEoKp29jR65XfA3o/xJwuRMh+b4eQp8tFQy2IfwTF?= =?us-ascii?Q?NWzW9zZfEILlmG92CYEWm3F1lNrYJAfU55TUkNPIUkl0eoBXvyv2aMZZ4F/h?= =?us-ascii?Q?ztyU/MeepbB4V4S9p4X6zldQzDYIZsZK/7mMr3zVNf2GI25DHf37SkYlakSj?= =?us-ascii?Q?WaQYgo2Ojf9Am3n2M0+VfL8PNefxFIVH+LV86U+TuKehZvikukaMszAW19HI?= =?us-ascii?Q?06XzSdqM/6ezsujwnYWJhw0=3D?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: marvell.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: CO6PR18MB4484.namprd18.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: e411ccb5-1e6c-48e3-cf49-08d9e82c835b X-MS-Exchange-CrossTenant-originalarrivaltime: 04 Feb 2022 22:20:12.8423 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 70e1fb47-1155-421d-87fc-2e58f638b6e0 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: FJF5I5kyHN4FDLoTrKB5D5xcfqABxZYAm0tqBNJ30yOx//SyBpsUW4iDTAku67pDutSoGPwMvb436r3ys/ejjA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL0PR18MB2193 X-Proofpoint-GUID: y6_oWYYBzQxN62xb19eM6t6mwdE6_9fj X-Proofpoint-ORIG-GUID: y6_oWYYBzQxN62xb19eM6t6mwdE6_9fj X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.816,Hydra:6.0.425,FMLib:17.11.62.513 definitions=2022-02-04_07,2022-02-03_01,2021-12-02_01 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org > Subject: [PATCH v4 1/3] ethdev: introduce IP reassembly offload >=20 > IP Reassembly is a costly operation if it is done in software. > The operation becomes even more costlier if IP fragments are encrypted. > However, if it is offloaded to HW, it can considerably save application > cycles. >=20 > Hence, a new offload feature is exposed in eth_dev ops for devices which = can > attempt IP reassembly of packets in hardware. > - rte_eth_ip_reassembly_capability_get() - to get the maximum values > of reassembly configuration which can be set. > - rte_eth_ip_reassembly_conf_set() - to set IP reassembly configuration > and to enable the feature in the PMD (to be called before rte_eth_dev_s= tart()). > - rte_eth_ip_reassembly_conf_get() - to get the current configuration > set in PMD. >=20 > Now when the offload is enabled using rte_eth_ip_reassembly_conf_set(), > the resulting reassembled IP packet would be a typical segmented mbuf in > case of success. >=20 > And if reassembly of IP fragments is failed or is incomplete (if fragment= s do > not come before the reass_timeout, overlap, etc), the mbuf dynamic flags = can > be > updated by the PMD. This is updated in a subsequent patch. >=20 > Signed-off-by: Akhil Goyal > Change-Id: Ic20bb3af1ed599e8f2f3665d2d6c47b2e420e509 Please ignore the change-Id, will remove it in next version, or can be remo= ved while applying if no further comments.