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 4D08745895; Thu, 29 Aug 2024 10:58:34 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 39638427DD; Thu, 29 Aug 2024 10:58:34 +0200 (CEST) Received: from NAM10-DM6-obe.outbound.protection.outlook.com (mail-dm6nam10on2082.outbound.protection.outlook.com [40.107.93.82]) by mails.dpdk.org (Postfix) with ESMTP id A5222427D2 for ; Thu, 29 Aug 2024 10:58:32 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=VXfIZ1XBlzLvJwhLnVawuOP3Fk5Jvjrn0/CGgddSMsJiwGbhscM9uRvdt8Ihy8o2wlreNBlwCX7U96VIPEo/05aVhkUd2mtHmEvWAvuXTflvjGoK3LC8hXoPNTWlcCh0p1yMhsSXdICckYUvEOqWIUxNHOQJ8CslBUiYvT7wvyJ2Cw5xIEYyLaqgZtSpE/TRO7VEuSIc68n2NN7CGutByYOrV4J+uLai5MI5MXbR0idhMDsqAY8ArzEnSZXCItAzD+UkIBUhwkpo7C4iZVSg0OiqewagnobXspMbSkcjWfXF+4oyBvac9xYa5rnpgr7GxG/Gd09es4bsXWPq2kRAPg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=+vPn/jI0yO7jdgxEbgDBzOhTbYL/qEIsAQxkqQ5IAJE=; b=S5YoHM3T3tVI9PAKttsPKhCbOAeyDGvlruL2Sn0UbfFPIvKNrlfFGxHqQ/6r87sNDJ3rVodr/eCc3Wg/WjalljkOHodH88Ce5XsYRYixp6w3ODQ/N6qT5ovwgyusxrMVCdF706CTLgo5y+/lY1AK7IQDn8dJfwgfvJJ8eypiBO8Z6oz8dRf5mwnZK9KD62wieyw+l5iawl3UXTSVujeWm+A/pDg+YFMQftLAWLjzNt6iWs+9shUkZjZ98iL2S4hd7dxBC77ELhfSy0yR3e4vdF1Q5dItmqLAUo6sLheQnujCXCl9/uwbelUZJx1tsJhet6ItxuGGK2fOkmwkcPex4g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nvidia.com; dmarc=pass action=none header.from=nvidia.com; dkim=pass header.d=nvidia.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=+vPn/jI0yO7jdgxEbgDBzOhTbYL/qEIsAQxkqQ5IAJE=; b=SNX1Jr0q/OLLqm8qaugRng+rImH0yqoA7Zaim78/sfRNBoIh8UGxwW3NDN+yCJzlAerYUpf9JdNe/e5nYavP5JBCHzg3MdcDDAXmj1WvNSJPPkCuCoGVQkML2IC4Rmug9ELUxlDJo2PnBKIUkRZJ5zQ00wdp15io05IStFFEpOwtQIMa5hXBz4sdTSz04NxeMXP0zs0zsY3ZW3abFtYNpMUQ32st9qH0GzmDNVKt8QdNMc4fRxwjfPCEwv2uPWDfTPcdibxSPo8i8UxGyvD4WZPSCyQLhnYHoVefUaIFTXOGnJyGJqzsxSh0VIyMLauDGlf+3qcpGDQ2UCmx2JYjwg== Received: from CH3PR12MB8460.namprd12.prod.outlook.com (2603:10b6:610:156::15) by LV8PR12MB9359.namprd12.prod.outlook.com (2603:10b6:408:1fe::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7897.26; Thu, 29 Aug 2024 08:58:29 +0000 Received: from CH3PR12MB8460.namprd12.prod.outlook.com ([fe80::2e9d:7265:3b84:59b5]) by CH3PR12MB8460.namprd12.prod.outlook.com ([fe80::2e9d:7265:3b84:59b5%6]) with mapi id 15.20.7897.027; Thu, 29 Aug 2024 08:58:29 +0000 From: Raslan Darawsheh To: Bing Zhao , Slava Ovsiienko , "dev@dpdk.org" CC: Ori Kam , Dariusz Sosnowski , Suanming Mou , Matan Azrad Subject: Re: [PATCH v2] net/mlx5: add metadata split for compatibility API Thread-Topic: [PATCH v2] net/mlx5: add metadata split for compatibility API Thread-Index: AQHazfyqaaahvM+S6km/Rk2mFts/ArI+RxzY Date: Thu, 29 Aug 2024 08:58:29 +0000 Message-ID: References: <20240613125146.547992-1-bingz@nvidia.com> <20240704102603.3355-1-bingz@nvidia.com> In-Reply-To: <20240704102603.3355-1-bingz@nvidia.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: msip_labels: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nvidia.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: CH3PR12MB8460:EE_|LV8PR12MB9359:EE_ x-ms-office365-filtering-correlation-id: 2ecf6de5-1ade-4fc2-3019-08dcc808c079 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; ARA:13230040|366016|1800799024|376014|38070700018; x-microsoft-antispam-message-info: =?iso-8859-1?Q?F7DC6yQi0J/CuAZPikff1LGfG4Er/FCKl0N9JmOwaSYD7C2FtAjbUtRcoT?= =?iso-8859-1?Q?MA4vq7SpzLRQvB6oCxYT4keMscYK6RYOkZh+4id/XZyKkdQQ0Kt275fnxd?= =?iso-8859-1?Q?B8x6XzjjU4YKgOPypdGM7GCyHEesdcVGWfDdVFGIs01THUOOLeVkjHF3DA?= =?iso-8859-1?Q?1LdjxRtzlbvnwoIVlPdX83HlXQJowillIgWp/WWnHokF70iRSLt8sDS+Mr?= =?iso-8859-1?Q?UogSxE03N7VxWul5MOhZqVLtz14fjApErfzGMKKbq5FfEz2W9Nvlv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90YN2nSgAoIxmjbS4mVM+mt2mppcWUUeltp9kQKCSRWVxPl5Ja4rf6?= =?iso-8859-1?Q?ZqjSN8g4PJ1Vz9uy1KVYjN9a1t1I3KvdcKUcwqbzrY9XPOHP7tmbPJrsw9?= =?iso-8859-1?Q?5I2eiP17VUReco5iN8UKa8fneHmZNfjM9GLfU49IAYaZbwQdxGDToXdvGi?= =?iso-8859-1?Q?93WO5hYe6eUWNH/O+q7W9fetmR6+ERueXKG8GUN8gTf519/Odcld0DvR1m?= =?iso-8859-1?Q?9iSYDiw1ucJOgJZFDyl3PfoLGFDGINLQ9ioBuH1/m2YfSDB35FVLfgO0MO?= =?iso-8859-1?Q?079Zh6/wDinTaVeSuq7Mg5QeJ47QcE1CPa47ow=3D=3D?= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:CH3PR12MB8460.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(366016)(1800799024)(376014)(38070700018); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?iso-8859-1?Q?E7uN9CXfcOwZwJeQ+ZUbBy0b54Bgd+lB876H62cEgQwAg29L1fcoNW3Qlq?= =?iso-8859-1?Q?0b0J9NWXr5MfwZwCKO4G/0D0z9NLvgibWAmOMNzJ1MhoLbM4vRaIPfits/?= =?iso-8859-1?Q?skiKe9r3u8Zp6mFBEdS4LQYtSs/ueXzsexL/cioloAUEUAvO6GSrI+v6hj?= =?iso-8859-1?Q?eb8iN3gkSp6/fl9Actks/TWhcx/Lf+i3qQH3emALp52FukLCfHBVhzXv4G?= =?iso-8859-1?Q?x6pQR1arAWoUallVy0p5bM20QCwbvbvtgfmZ1E6arYu0nl6LG7HK5MH7VO?= =?iso-8859-1?Q?WFcHJDQps1icWcqRtUXkKaVPWgtOt1SChUODeaUHnYfM95V+2evAV57m8E?= =?iso-8859-1?Q?nNN0Ajn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RdehJl+QT8yExeu?= =?iso-8859-1?Q?/L9jwNGCq1SgHhq3fyQxJkNoZP4eY5+ZM3YknFMx7H3EflVri3TL8SgA0n?= =?iso-8859-1?Q?9oyi1lAiam/p7UwJYaidyXhAiJZVyehhKFnksZBIrSZ4VXXqk4p1Iyk18a?= =?iso-8859-1?Q?4tNoL1tvQJyDTnuMbZLzW+j41W36xKd9I3YvXbYiD5VmSoU05jxFJOw0I3?= =?iso-8859-1?Q?nn+ieaVaK2bmwiophpsbaaUpWob1SJfN5wCLdvC+qwgclWVNhHkoZTm6ol?= =?iso-8859-1?Q?io2n7ISOexJZSN024Cp5Ktag5EIfHVm9PNTynYtYTe3W5XsSW6qKZ0Q/Je?= =?iso-8859-1?Q?qN7oSBXj3c8nP6+VYqG0fG5BHC3t7n4SSpfDPT0vCKYy2jtFO/5/6/fMGb?= =?iso-8859-1?Q?JnMp243/fRRP8=3D?= Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: CH3PR12MB8460.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2ecf6de5-1ade-4fc2-3019-08dcc808c079 X-MS-Exchange-CrossTenant-originalarrivaltime: 29 Aug 2024 08:58:29.3969 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: oXH0JqkVD7DSBN0mCHXfOAcenbdaDnUw2uL19/a1z676V7MmgsIy1XwrS5Hd/eW2K6USqwUNdGTh/0Tbn+JUbA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: LV8PR12MB9359 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 =0A= hi,=0A= =0A= From: Bing Zhao =0A= Sent: Thursday, July 4, 2024 1:26 PM=0A= To: Slava Ovsiienko; dev@dpdk.org; Raslan Darawsheh=0A= Cc: Ori Kam; Dariusz Sosnowski; Suanming Mou; Matan Azrad=0A= Subject: [PATCH v2] net/mlx5: add metadata split for compatibility API=0A= =0A= The method will not create any new flow rule implicitly during split=0A= stage, but only generate needed items, actions and attributes based=0A= on the detection.=0A= =0A= All the rules will still be created in the flow_hw_list_create().=0A= =0A= In the meanwhile, once the mark action is specified in the FDB rule,=0A= a new rule in the NIC Rx will be created to:=0A= 1. match the mark value on REG_C_x in FDB and set it into Rx=0A= flow tag field.=0A= 2. copy the metadata in REG_C_x' into the REG_B.=0A= =0A= If there is no mark, the default rule with only copying metadata=0A= will be hit if there is Queue or RSS action in the NIC Rx rule.=0A= =0A= Regarding the NIC Tx, only the metadata is relevant and it will be=0A= copied in NIC Tx from REG_A into some REG_C_x. The current HWS=0A= implementation already has already supported in the default copy=0A= rule or the default SQ miss rule in the NIC Tx root table.=0A= =0A= Signed-off-by: Bing Zhao =0A= Acked-by: Dariusz Sosnowski =0A= =0A= Patch applied to next-net-mlx,=0A= =0A= Kindest regards=0A= Raslan Darawsheh=