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 B437644060; Wed, 12 Jun 2024 18:25:09 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B17D0402B4; Wed, 12 Jun 2024 18:25:09 +0200 (CEST) Received: from NAM04-MW2-obe.outbound.protection.outlook.com (mail-mw2nam04on2048.outbound.protection.outlook.com [40.107.101.48]) by mails.dpdk.org (Postfix) with ESMTP id 8C1C340151 for ; Wed, 12 Jun 2024 18:25:08 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=hDyixRxlyxlnfjkkY7Lh2Es7UeI9v0KHH+/Igtl0BIBTU7yIokHdSj+g/YVOhu/4Qdt/WyMddCHmeR8FbaLKcmbRtLzILbJ/jlPh6fi+k/GKW5rPLINUWdli6UErLYrI6DlgNl3IUfpw0JqnjXcEgCdpOWX/ZdYox8znhi/zaWh53DzAGNUZU9Y0KhQKPbUWiT+NLYUVXKhP1aOoQU+cV/Gmd2faCRml2LDml6gm1bLrsQaRwfZGkuPMaMl4fxPuOx/54jZJwYeprq4Jm4UEoFWl+6m2un0OMvglSMJz8I5Ay5iCFDBN6DJcP7uGbMAs8tEPhJe6/1TJNlznuCVGaw== 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=wqsOFiAxo37W+iOxlIAJXOpiGgC/00RQ15t6RyieqWY=; b=BEIIOlHcipzxz65DenGxmYJoVMHQ0GWGUgOuIjmtudwD+CKefgEGxjBAuGqLfAYHcUk46eTEZ3Unv7acoONGdLFKOgorbYIeHbxntVIzgp0IDxyYyVpfwqUM80iwMZD8JlGrOqWpnToTcYTtr3rKrk+DOn5rR1JqAlMAlZe42GvsegpYQKLUcWFhSd9x148SR3Nym9izQIm0e7ij6v5XKQ2x/Dsad0gBXeIZkrAb2uksYXxWrxa1yE+7JHyH6ve0vWjHxeVhE6xG8q4DeWZ0w3Cp8Z38Firi6tqLsUz1NWLZu90FW0ZG/Ah87r/SSdx3oIiRFupz24p9HGeaeQDiRg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.160) smtp.rcpttodomain=dpdk.org smtp.mailfrom=nvidia.com; dmarc=pass (p=reject sp=reject pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none (0) 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=wqsOFiAxo37W+iOxlIAJXOpiGgC/00RQ15t6RyieqWY=; b=Ns00fJ6MFALI8r/lgdHsTeFdzJQoZXJ5cBNbtochj365yiAA2oCkb5/tcWi5ZM53i16VP42wSQo9gBg82Q0QMbBKZFwGLHr+lvB0TXkyf7h3h9AAKOblnmdNMNIHLjIbuTUYv2+dUnTDFKyb+TBE32RbBmug4rSl2UFiEGtF9qJLCT99h5lqyQYyPD6Ee+rLDeczSTNTJQNP7rhxbNcqHA23NwH79ClcWDDBflCi2BeeaqpIDL+I+ZPZw/PynZOWnBa/p2irifDEOs4mmriHl2PDQqOTIkz1DcDVCcY3MYJ4I9y9M/u30KJ7+9u6TzImRuT9tyvQCCG6JWeghiNynA== Received: from SJ0PR03CA0153.namprd03.prod.outlook.com (2603:10b6:a03:338::8) by CY8PR12MB7340.namprd12.prod.outlook.com (2603:10b6:930:50::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7633.36; Wed, 12 Jun 2024 16:25:05 +0000 Received: from SJ5PEPF000001D6.namprd05.prod.outlook.com (2603:10b6:a03:338:cafe::ba) by SJ0PR03CA0153.outlook.office365.com (2603:10b6:a03:338::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7677.20 via Frontend Transport; Wed, 12 Jun 2024 16:25:03 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.117.160) smtp.mailfrom=nvidia.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.117.160 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.117.160; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.117.160) by SJ5PEPF000001D6.mail.protection.outlook.com (10.167.242.58) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7677.15 via Frontend Transport; Wed, 12 Jun 2024 16:25:03 +0000 Received: from rnnvmail201.nvidia.com (10.129.68.8) by mail.nvidia.com (10.129.200.66) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.4; Wed, 12 Jun 2024 09:24:47 -0700 Received: from nvidia.com (10.126.230.35) by rnnvmail201.nvidia.com (10.129.68.8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.4; Wed, 12 Jun 2024 09:24:45 -0700 From: Dariusz Sosnowski To: Viacheslav Ovsiienko , Ori Kam , Suanming Mou , Matan Azrad CC: Subject: [PATCH v2 0/8] net/mlx5: flow fast path validation Date: Wed, 12 Jun 2024 18:24:18 +0200 Message-ID: <20240612162426.978117-1-dsosnowski@nvidia.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240605183419.489323-1-dsosnowski@nvidia.com> References: <20240605183419.489323-1-dsosnowski@nvidia.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.126.230.35] X-ClientProxiedBy: rnnvmail203.nvidia.com (10.129.68.9) To rnnvmail201.nvidia.com (10.129.68.8) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SJ5PEPF000001D6:EE_|CY8PR12MB7340:EE_ X-MS-Office365-Filtering-Correlation-Id: 98cb0688-df62-4136-36bc-08dc8afc36b9 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230034|36860700007|376008|1800799018|82310400020; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?0NQQXLPCOpXw6AygepxF3efErD5VZVkKTLENudBbsL4pjx8vd9A+8NmKZSP6?= =?us-ascii?Q?+Uye7hTPqMsAPVkH5w2ZCzb1PPq6452y9hAJhC+2YnNFZAKLmoX6mBZiD8Hb?= =?us-ascii?Q?hTStrZ4VHZi6y+3LYITJNLErUe1uZEPXpnFhvm5HFSaMA2Yg0btXWwwHch0O?= =?us-ascii?Q?98pDIzXnV1nzd3rxcTuFJnPA2gTxty3/K4+yOd5KzrojafuPA77Umepps9ky?= =?us-ascii?Q?vf2m476jZLFGWSfTRMKijWeO2h3V7capM8tGeh9jSCWNOxiLhy5PWHSrj+hp?= =?us-ascii?Q?Cb0yHvacWEQ2NHp0N/wd7xemdcuJAYE4dm2HBPC9JrMvMobIcwqbqFT18BCa?= =?us-ascii?Q?2V8PrgItacOOF461+JmDutQooiXzfxQY7sYykRc06YSQmdPo2jpZypxSlvxY?= =?us-ascii?Q?J6kBxK/G5aaB+SgNDORZKmJm26ky9omZ1QCdJjFk8KOLq7arSC0P2HMLZUTB?= =?us-ascii?Q?3Plo5gIGw3juAUb5F1uD3QPRqeoglZSM7s0MEpobh2fdLxUzv3mNcjRt3EKe?= =?us-ascii?Q?arLLphdOpzTE+En/oCK5W4RN1Wdri2vkF9516oKZOQiMQySA3NgHp9+miYfh?= =?us-ascii?Q?5PBpBb2Y4/R73qJTk6FGyESPt8OYNQwrm0iZ4sVFnIvMuF0C8u3/xKWP9LDN?= =?us-ascii?Q?/cHT6sMa6Q9gzpA79P4HbKJU/o31j/OiXJRtMe7VmUStXLFT6jzyAJS8iM0E?= =?us-ascii?Q?9XAsGhTXkjdzrYczGGCdhwLeTaTebfi6np5hEe07iDrhrI/XmPVijlKKi2Ej?= =?us-ascii?Q?TNWPwsgzPald2NbOVSjb9NzqRto/9wh/Lf8A/ySYnLPjn1L2GcR9whvxx1yt?= =?us-ascii?Q?z5KyGiqBD7DyzRdR8finrtApSayiUGoAb5lk/TkW4loys8f6vZLAExwsYNrv?= =?us-ascii?Q?83WPpZZCbw+TywV6gE20ZTqvOP+5PmV0mFedgJbB2gh3aQ6JN51z1ebxebe7?= =?us-ascii?Q?P8DDm9BxzLRFFAffbKrzdVUjCeLLIBdR9v025eYYMiaus5787ECuAt7sL1TK?= =?us-ascii?Q?nIvkOF4Actwrh4ZeDF+qdtwxblAO36mYoESrb++6EhUHZY1JVaK/7+v0jao8?= =?us-ascii?Q?Pev5IWC6Jy2hppPWHlKixO1WhAFa4dO9bvscD4z70JpBaDI5gkrs+lIPMVe7?= =?us-ascii?Q?floMRZ02FroXMXsOhQVoCqnKFrvipXPmVFkziST8QNhcjP/mBWyZW4KNR59q?= =?us-ascii?Q?ryrY4W4LjHoKOx1FJa8uOaypOGSRXOVXJfsfeD+RJEYSHNX4wd7Tp+gu8g3Y?= =?us-ascii?Q?EtHDobuMvNeVI72RcPqw4EkkBMNttydl8LyHkiA4lRCtyKKooMXeiZoRXmxZ?= =?us-ascii?Q?wY1tm8/3iI4Y+qyzJLyhOCiJA/TBzwGdP+ZhTrXtr0GpH5v7XuwSJHCE6d2/?= =?us-ascii?Q?e5ewunpUUG8LJ9UXMyrpOnSOL8jmxtH0aAkYChuKuy8v5ipBDQ=3D=3D?= X-Forefront-Antispam-Report: CIP:216.228.117.160; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:dc6edge1.nvidia.com; CAT:NONE; SFS:(13230034)(36860700007)(376008)(1800799018)(82310400020); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Jun 2024 16:25:03.3798 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 98cb0688-df62-4136-36bc-08dc8afc36b9 X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[216.228.117.160]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: SJ5PEPF000001D6.namprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY8PR12MB7340 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 This patchset adds validations for flow items and actions supplied by the user to fast path async flow API functions implemented in mlx5 PMD. - Patches 1-7: Prepares mlx5 PMD for adding fast path validations. Specifically: - Required functionality for validating queue indexes and target represented ports are extracted for reuse. - Additional info, required for validation, is stored in pattern and actions templates. - Introduces mlx5_fp_debug_enabled() function for checking if mlx5 PMD was compiled in debug mode. - Patch 8: Introduce validations to: - rte_flow_async_create() - rte_flow_async_create_by_index() - rte_flow_async_actions_update() - rte_flow_async_destroy() These validations are enabled if and only if RTE_LIBRTE_MLX5_DEBUG macro is defined during compilation. Depends-on: series-32150 ("ethdev: support duplicating only item mask") v2: - Split series 32095 into separate ethdev and mlx5 series. - Rebased on latest commit in next-net-mlx-main. - Removed Depends-on tags for already merged mlx5 patch series. Dariusz Sosnowski (8): net/mlx5: extract target port validation net/mlx5: extract queue index validation net/mlx5: store pattern template items net/mlx5: store original actions in template net/mlx5: store expected type on indirect action net/mlx5: store modify field action common/mlx5: add debug mode indicator net/mlx5: add async flow operation validation doc/guides/rel_notes/release_24_07.rst | 1 + drivers/common/mlx5/mlx5_common.h | 13 + drivers/net/mlx5/mlx5_flow.c | 59 ++- drivers/net/mlx5/mlx5_flow.h | 12 + drivers/net/mlx5/mlx5_flow_hw.c | 620 +++++++++++++++++++++++-- 5 files changed, 657 insertions(+), 48 deletions(-) -- 2.39.2