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 040FF455DA; Tue, 9 Jul 2024 11:36:21 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C4AD8402E4; Tue, 9 Jul 2024 11:36:20 +0200 (CEST) Received: from NAM11-DM6-obe.outbound.protection.outlook.com (mail-dm6nam11on2085.outbound.protection.outlook.com [40.107.223.85]) by mails.dpdk.org (Postfix) with ESMTP id 4988240156 for ; Tue, 9 Jul 2024 11:36:19 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=V5aOdrNTqZFnw2xvS+XbSv3CNIzMTTtCjD/7vDj6MeKDon4bmHacZhqKSykZT7MaiB2oOzPpkONx6MxFrmnwJGUZh4SZOx9RFedfcTqMgyGmOvymkluAy/2MCFbRRkKl1wzgBHo8aPHOVYSprXhEi1M8X097OwKHE+onwh0q2gaGMCa1FRw+k7VA+pWtcKkaCBaIHpD/KIMvlJoZlbYHz+FIuQNG3Bt1FfLxmz5qlkUJ0g973RPhB35IJMPtKPEPt1mjzRzxWqrmlTj1dGBGiQdWv96DS68U8v+rokbIoXiNbItoNxqklF+vDYo6K05wbB5fDneQymhwpEcW2aTxNw== 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=4SNIOQy9mXTIhBjkg3LLeKKJtjwBXSnOcSubBGa5iOU=; b=JzpRXREgfpgtqeIzSKDYWCMQE/R65yu0iF/94ALs0GlfHDTivihXJaOUA8g0u9pHMC2iFdFr+GKE2xvV1j50n1RPfnqYLVhxv/WFKiIe6FrRBypQB9DgFDdYQ1R0jO78IRIjM7RwpDcODMZ8VdpNntQ+7dnmeC9ETsPbcs6yU6KGI+egiDz4SMpp9ctwBxpq68EmJMQHwv+0qPiTgOsDtN5j0d09Rwy+qIu4sL/fK/7OjZuny5IiorkSPmAmCfp0qE2Tl9w0yuk4PoXgVdNyDlGiI4XRneubWtP9plpusljdO2F9Ck3sC4YA4B1+3ha+dQownOuf55dytyOR/fseQg== 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=4SNIOQy9mXTIhBjkg3LLeKKJtjwBXSnOcSubBGa5iOU=; b=g1SeXzsj0BLbpqSBm2enNg3uaTu93Ll8OxDNVKtQkNvDu8HmVga6Yik0XjIyw6kycVVC3V4Sr65iRZob9GAMqRgP3VQz7YgzgN23kb7TPuo9RfFWZhMnz8cV9WSfesbN5tU8QN0zNUhQ+wlsUPPL9E/MUBVXgTM7PK93+YIMdFUiXaQPqtGKLrRKCz11Opigs/cGY25RltEOszTVq7UjpT6QjH2gRH4a3zK2SWqsjAQFIC0lB7ygddzSFxPuD6TmsNjn2hjp6dEYU7LTIsBaI65jYTKU4tbkkRltu09hFxbBBI7cAfmUbRML3mjbH/H2Ia0Ti7Rv7CPf/vZItT4aQg== Received: from MN0PR12MB6056.namprd12.prod.outlook.com (2603:10b6:208:3cc::12) by SN7PR12MB8790.namprd12.prod.outlook.com (2603:10b6:806:34b::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7741.35; Tue, 9 Jul 2024 09:36:15 +0000 Received: from MN0PR12MB6056.namprd12.prod.outlook.com ([fe80::4b75:36f4:f278:fcc0]) by MN0PR12MB6056.namprd12.prod.outlook.com ([fe80::4b75:36f4:f278:fcc0%3]) with mapi id 15.20.7741.033; Tue, 9 Jul 2024 09:36:14 +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/ArHuKsKq Date: Tue, 9 Jul 2024 09:36:14 +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: MN0PR12MB6056:EE_|SN7PR12MB8790:EE_ x-ms-office365-filtering-correlation-id: 4c86bf77-9316-440a-7e77-08dc9ffa936a x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; ARA:13230040|1800799024|376014|366016|38070700018; x-microsoft-antispam-message-info: =?iso-8859-1?Q?i+8/VNP4O/wuAQmGwsT8X7YJsEtBx6LB7eNhSFlgj70Fsg9Y8KejYvnfre?= =?iso-8859-1?Q?AsQlLqcNA+xzL2T1+4zngaCB3rcm6rBrOxzC9aOZuDWr987thF2LpOKkkf?= =?iso-8859-1?Q?ggyZ03FcsMvziLzs8QUaOxqMzXlweWFysYu8XpA4N3GEdZLLiXwVDEWGun?= =?iso-8859-1?Q?lpxrC7Z9qmUXL6MSommX8QefS7tdHXAKJ/caigdaHn7amlPC93B3K8wFGa?= =?iso-8859-1?Q?9ZsNQpckspZPNhE6j6TndO+YNf8FxdTnO4J1myATRMDbQEBUUSMAerFpCD?= =?i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EUqkbaGxc2eQ+mlAFuuCN?= =?iso-8859-1?Q?aTKa6gUQMyMDi0eSOIqE6EN5R1PJLqqjgv2Mgv9qQacGs+rdp1hcP5QaKZ?= =?iso-8859-1?Q?6YHm8FR2UJY3lrC523wVEFocmQM/sVcivMizcsw+4/t0klU4Fh492bQQx/?= =?iso-8859-1?Q?B1Y62YqJxisPOs/LeKqqGHTaFpsZpKfBkKxKqbRoedTa2XovclPDtvwKZR?= =?iso-8859-1?Q?Vt2KCbOG+c88wGMiiDxVNW8nY/plE66qfi5W8aE2GUBWho8JRlcRn22eg2?= =?iso-8859-1?Q?jgfL1e7TjaC8Ii7b0CquiK1cD3z3C4P3+z3C/A=3D=3D?= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:MN0PR12MB6056.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(1800799024)(376014)(366016)(38070700018); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?iso-8859-1?Q?sn/C8tZY4gpTA7awvXHQWI3WXQskcwH/SrQ2bCnl+b0/3d9LC0KzPG6s+8?= =?iso-8859-1?Q?bwNIO3G/LQwaVDc5N/BsMZUsitWD+6YYNpIRVqAosW+BYex5kCU2YF8HaA?= =?iso-8859-1?Q?So0qysiSISQZhP52zBZxH1BmwGxFUoSXQGGH81Yo9TV9Zw4s4UAuDqTr/S?= =?iso-8859-1?Q?z/RLzN61WW6p7KFZev+9aAJQWKjRFxyj1ceEQv50O0Y07AqvmkaM8tvGvw?= =?iso-8859-1?Q?gIUMZHuElESk5QuGFvdp6cdhujAckbJgwWUM8YWeP/gKMwGyPnMIHPS/tj?= =?iso-8859-1?Q?TH8kHO0gBaf1G/wlyTp708m7G36yr34IDPTE8c+9D5H7ixImhnd+5APiKS?= =?iso-8859-1?Q?X86DkJpDDULa21PHpoRFxGFPAyPY3i1YJlTIGGl/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Q?SQ61RQ8vw1dT7I+UTT4duUY35+wy9hTwQjUzVp85vYGIupqYYh/7N6BUWB?= =?iso-8859-1?Q?r3NzEQTy3Auni6eLErezXWdNgPEnR9Wr7S4i0VrcCjQHJNyHM4o6A2871f?= =?iso-8859-1?Q?xdgZoLTYDM16hgYzDrVwXmo4ckKm8Dby+It9YeKHODOi8rMByQFVuL/D6K?= =?iso-8859-1?Q?92mvpreC5eMKs/R1ZgfS8mPrNDjbPeeukuyKnUo1HXRVJLcjPA/6LbJSR+?= =?iso-8859-1?Q?ZJ5DJIMyGqTRc0IcVia2wAmoN9N//KiqF6rB1PWxaVQuq2zxlGANGO4Tnl?= =?iso-8859-1?Q?mDliNzVm9rKQQ3iaFGUBuQBC0v0mj166AGhTFkiFo0EqAye2+mPiitD+8A?= =?iso-8859-1?Q?3LiQUOyrJ3xSQ=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: MN0PR12MB6056.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4c86bf77-9316-440a-7e77-08dc9ffa936a X-MS-Exchange-CrossTenant-originalarrivaltime: 09 Jul 2024 09:36:14.3244 (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: FjZkwBFuU0r0EDUVjX7qDOBDMBdLdE3l+ZhxKbwI59ldcmPOjf8pSWnuGGBK7jxO3oE74VY+WoPZf+CWzSleZA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN7PR12MB8790 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 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=0A=