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 761F143FE3 for ; Wed, 8 May 2024 17:23:54 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4BA374377B; Wed, 8 May 2024 17:23:53 +0200 (CEST) Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2058.outbound.protection.outlook.com [40.107.20.58]) by mails.dpdk.org (Postfix) with ESMTP id 7D0AA43775 for ; Wed, 8 May 2024 17:23:52 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=D0FHJ9RxFBRjY23eErwHXcSSUOMnqgOyiAQklgBFIJ4kv8iTc84h2oOh9AgJgoDFx8rbnO7E/z0Qd/GgVjnxpd/WdWtXS3GfmLKfB6WdKYK807NWNjeB7rsNzOFS4J01Gx6W8+WtxO9IfchAC6spV0Yfg2drxDnau4kjqqb4DGq2U+IFwegoDbGryoBryA4YN6ZVq+R/YiYGBhcWklQGJ/fFK0IARPsu3bjKt9br+3YvgNg4kdj2n+8CMBMzwI6hGVB9YVpQppEYG3RIEmTodQ77oEsMU3N0Wv4Y649hSqHtAJqxkcYLpsU0YC5Dhcs92etmZvwBJW/neDGn+afs6g== 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=/m+V/xnMTf8ZNq47Ztd3t1GHrQBTgFFp0sL0qENp8hU=; b=RmEoIsvndKeG8ArbAz9H4xqXVo9z0dhPL2xwOSxXNJwPd5sM1UoYY+YHUsyeRMpc6UVKUdWyuIPx8+M1zv6rGY4OGsybgVxd8AUNrBxFswKXleqLxV4M9CCWPmja4fxwYQ7IDGYzFoxaDuyinCJQCH8zk+3eSM9qIw+C2oMlaqBqO/gnkxmKA0BZkbnbdqbmadTddEpzTQ7aWYSPobZrKeih7DYjmnmLeVWpN294uexKBp7nQimnXtdVTN5NYG7CFxDij1U27kDhXzbC4/StCL80QQlyLqPSez2TRW02cdcKkKeOiEpKFWDQMJWtH9U9HlEbGs73xaTLmB1F0FA5nw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=ericsson.com; dmarc=pass action=none header.from=ericsson.com; dkim=pass header.d=ericsson.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ericsson.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=/m+V/xnMTf8ZNq47Ztd3t1GHrQBTgFFp0sL0qENp8hU=; b=NKcYW6J5T+ST8wvZfm0eo/uD/9y2yasdUpj4gg37+P0RCkPiGdzRcClIeJc8f3/00RDZWXHbLFFOm7mzI5Sk4LEG7e67XoFB2B6bdlvgKTTzVFTAw9PsA+E5pyzQkwYXVa+rV9CW8rU+2fJaj0bypVAofVEQqXDBEKzJRYv3uWXMqTqaWkXxwdImwQOofosPkG/YVM1XwthKwqTlYRAL7UFhbFUVhu8ROm9mRkfs/gbv38URivt78SL2ZhN38i1vL5E99eYqxdy/yl7iDZ9rHhi8MBBA4qpzBZuvNkDya8q24uz0iTfcLq2BnWewMD1FbgPrtxSgXHRvIIX+89t2fQ== Received: from HE1PR07MB3370.eurprd07.prod.outlook.com (2603:10a6:7:2d::21) by DU0PR07MB8834.eurprd07.prod.outlook.com (2603:10a6:10:313::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7544.41; Wed, 8 May 2024 15:23:50 +0000 Received: from HE1PR07MB3370.eurprd07.prod.outlook.com ([fe80::498b:4993:eefc:c80]) by HE1PR07MB3370.eurprd07.prod.outlook.com ([fe80::498b:4993:eefc:c80%3]) with mapi id 15.20.7544.041; Wed, 8 May 2024 15:23:50 +0000 From: =?iso-8859-1?Q?L=E1szl=F3_Moln=E1r?= To: "users@dpdk.org" Subject: mlx5: is GTP encapsulation possible using the rte_flow api? Thread-Topic: mlx5: is GTP encapsulation possible using the rte_flow api? Thread-Index: AQHaoVu6ynByKyFHgkekNBeN6/vRdA== Date: Wed, 8 May 2024 15:23:50 +0000 Message-ID: Accept-Language: hu-HU, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=ericsson.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: HE1PR07MB3370:EE_|DU0PR07MB8834:EE_ x-ms-office365-filtering-correlation-id: 438d27f2-b182-4b96-a063-08dc6f72dcf7 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; ARA:13230031|376005|1800799015|366007|38070700009; x-microsoft-antispam-message-info: =?iso-8859-1?Q?DaRwRoL7jLhK+ZNW7OvWXwKJY2fnbY9268qSi+bSeT/gPd4+5w8CdLF/RD?= =?iso-8859-1?Q?5PZmudydREYA9WgmpfIHkxrGw7x13dL/VW0OCnaGdoF1RC+KH/5amk5EC0?= =?iso-8859-1?Q?URek+xjXpAUdu43Nu/bdC3bYrGf3HNs/AzkTWDYFanKtoPCiOze1kR6xdT?= =?iso-8859-1?Q?ssTSEIsKXj0U4H8qHul42AP4SPv9Ry4YCfHDEVvzSL2MJ0JVsU27/9UTtU?= =?iso-8859-1?Q?1GAf12Zr3JVs2bDx8W345O42BuaFiCRCpGc279JXzo/hJtQahFRv9Xxa+B?= =?iso-8859-1?Q?ywPlLORmhaU+opa9ZlJ2uaHCez2TS3ntaL3tO/O3kjGeCYXdHxjiy+DdXr?= =?iso-8859-1?Q?gN+ueqYDzXlEE0kBe39zsofMcfHmdX31UpJnCyBFXMazyCsQ2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dCkUhLLWv5EeKVU5//STKVXDh/0otMs7O7Flcp7/Ad+95FV5wM?= =?iso-8859-1?Q?IXVgxEA78CbJktMUp22P3qq72NknRoXzjoFFM7ZYkHdja3xG3l7nn4udJS?= =?iso-8859-1?Q?PZx9Fe4Vr56FQ3g1WOvCRHs10fRp0eFg=3D=3D?= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:HE1PR07MB3370.eurprd07.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(376005)(1800799015)(366007)(38070700009); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?iso-8859-1?Q?n5P/mGrgnve2wbdusRqTUAPePV4crHHCq4sH+MCYGQlmI63IQtdY5+2/2H?= =?iso-8859-1?Q?wbJUa/ihCbxfbU6BFhI1KhmQCgud6oKgyosXFuwX9rWjwELaMmESFedoBw?= =?iso-8859-1?Q?kT21ylCCbo2hyCd+9IsOdzA+aRrwIgih/NYaVnoreWnureYgURiOfHhsG4?= =?iso-8859-1?Q?Squde8UmbD8QLhfcOFBaLGb8VzWLJGjweDcN8ufcz/GZbDq7h2gViHi1se?= =?iso-8859-1?Q?O1fZDg8LBaJLT9OpXqfQfOTzIsubBx0hnaf5aaYtCkF6Rv10qyKG74Cp0T?= =?iso-8859-1?Q?okMOHlFbQXHWj3Rqlr5ACl+YPirWgCeZ5t5H0A6nknTltZGGccnVVhbQha?= =?iso-8859-1?Q?F91HFGDrtJN5+FV+78DtVyxyfJoTcNJ0mKrBDC3c7zW4XLMwoGgFOwW9V+?= =?iso-8859-1?Q?q54Z1WWbwFvZsr0MlmJobP+zbNdeLVJPSDYdNRZYOFEIxfYL6AeXcle9xe?= =?iso-8859-1?Q?L84+D4Pd4DOV2BA6x/7geRhrXDhsIlEvPt7vsuVEAYX1HfCvCqLMKry2dx?= =?iso-8859-1?Q?JMoRX0gM60wY5yXY7n9A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1?Q?cpsRw5OOui/kY91WJyc1gMQFX4wHpQKgye2+zpZwgMH5fAD9DCn/MoBptJ?= =?iso-8859-1?Q?jP8CDeus/paq7ueGyKlVFqgKMuP6rqKDT9l7czaO6kMNptjzZVQA6prCmu?= =?iso-8859-1?Q?K1C6RpJ554htnruxuOyZpgJs5TcOwDnq5aMJpf9xLWIE8nA7Cio/RfyCL5?= =?iso-8859-1?Q?rRvoRvR0k+WP8lsm+yFZIpRrcqKtQbbguqnYsqUQi5az3U4nyJjFSvRA?= =?iso-8859-1?Q?=3D=3D?= Content-Type: text/plain; charset="iso-8859-1" Content-ID: <88FDF6D0C85AF74A9EC25E34714BD7F8@eurprd07.prod.outlook.com> Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: ericsson.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: HE1PR07MB3370.eurprd07.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 438d27f2-b182-4b96-a063-08dc6f72dcf7 X-MS-Exchange-CrossTenant-originalarrivaltime: 08 May 2024 15:23:50.3472 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 92e84ceb-fbfd-47ab-be52-080c6b87953f X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: xt+0GIXlgxdhR0GYiYLgUNPw/RAsLHwkjxQWvFpkDZiVvwefAaOvvc1/bhc3Pp0/D3gig1DzqSEevwKe/amF8hYaHoQNE/8FpjtlL1QjmFU= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU0PR07MB8834 X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: users-bounces@dpdk.org Hi All, I wonder whether it would be possible to implement HW accelerated GTP encapsulation (as a first step) functionality using a Bluefield 2 NIC and the rte_flow API? The encapsulation would need to work between different ports using hairpin queues. Let's say I already have the rules in dpdk-testpmd that remove the original ETH header using raw_decap, and add the new ETH/IP/UDP/GTP using raw_encap. Now I would need to update some header fields (payload length for ipv4, udp, gtp). I would use "modify_field op add", but I found no way I can access the payload length field for UDP and GTP. For example, when I try to access the UDP payload length field by using "dst_type udp_port_src dst_offset 32" in the "modify_field" action, I get a "destination offset is too big: Invalid argument" error. This seems to be caused by a check in the mlx5 driver, which is a bit surprising as the documentation in rte_flow.rst (DPDK version 24.03) says that: ``offset`` allows going past the specified packet field boundary to copy a field to an arbitrary place in a packet, Is this just a driver limitation or an HW limitation? Or could a flex item solve this? Thanks, Laszlo=