Message ID | 20240626181428.1678402-1-dsosnowski@nvidia.com (mailing list archive) |
---|---|
Headers |
Return-Path: <dev-bounces@dpdk.org> X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id E7499454E5; Wed, 26 Jun 2024 20:15:11 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D3BF94027B; Wed, 26 Jun 2024 20:15:11 +0200 (CEST) Received: from NAM10-DM6-obe.outbound.protection.outlook.com (mail-dm6nam10on2073.outbound.protection.outlook.com [40.107.93.73]) by mails.dpdk.org (Postfix) with ESMTP id D71F94021E for <dev@dpdk.org>; Wed, 26 Jun 2024 20:15:10 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=bjloqGESz+W9CJ0s0MQdNwhDYX1sYKnXEzNncLN2VvTN8IhqqUfbXZQcDgzQkrD+SxFyJBRpX1yK8F9x5qF9Y7uIRlK8jsrmep+ZkbanKcy8Wg9xFQAFPIY8hrB/4KUfe3SGyIjCCKYeC+yLPDmNOgJbehAYPg4HEDSDWAkS4BgDmF6Td+43GV3GrjmgQRVucz1ApeVNO1yW2Hzp7Vy4vQUWWGnVvOP3NZNSQ/5KzySoBESlX8h1usC7bkZORO0Q/iUTliusRStd+fpr+18pCzt1OhOxhNStt7mamN0Q04FEDNTuIUmoK5E2MWirUHGGZoAgWsFDNLZV7iebweQ/aA== 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=/GY9jotPjqtZW/5ORRH9jJ4JrDx2ygZXszMkrCVGgDA=; b=Xi6qIU9f2FX01KBvMOGdknoXkgFAJ3rm5+HmsBbAiY3mlylhQZ34R5gVsYggAN6mv+6gJIUNb5T3raK3ojPkTxsYd2AAUKtzSLTSZZ3P3LQDRZwd/2pNdzAbEzmpDjPiWtyjEKxX8L+afMrSvVYRc4/89iatOTfRFM5NLFQwzP+KP23vKf9gG1bkfRmS6fxLwgBubRZkvyiyigkH/Qu9TIdNm9BQa25j4JQpv4NPO1rkQIWRlZN0dht4YfxVLFuMwSyIkSaF6o5PX1U+5ksBZ+KdW5nI09QoCPQBiSnZCHF9cPk7CIqDHLvC0alUaES71hECBnE0FtZev58QoRj5iQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.161) 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=/GY9jotPjqtZW/5ORRH9jJ4JrDx2ygZXszMkrCVGgDA=; b=WwTU0rb3UjrqIZgYRIxuixtjV8zYZDA/r2KP8QDQMOmjC6GYj2tPNMfLEyXvQxwoivHZRmLbVmGQQelfkiSA64VN35MZQR4a8e3A7hj8dAHZuM9udnTObkOPvo26GF8eVLbV6wB93bSsfdbasMHFLLfDKf8d21keFkJG7sbvoDKHr7p2fxQtrmZ1LaOmvpvKHr92/AapUZ9boeL/B4/z/2P2OkQ4YmT6ApVAt10xp1H7kzzVcLfstOnju8iRnhlr1TKhYZdNaUywllInpKf2sbH3OR5yhK+svWohPYONXblfjz+CZnCcJ00ItIUYhjQK2HEhLzet+YOzfRqOussLHg== Received: from SJ0PR03CA0351.namprd03.prod.outlook.com (2603:10b6:a03:39c::26) by SJ0PR12MB7005.namprd12.prod.outlook.com (2603:10b6:a03:486::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7698.34; Wed, 26 Jun 2024 18:15:07 +0000 Received: from SJ5PEPF000001CE.namprd05.prod.outlook.com (2603:10b6:a03:39c:cafe::7) by SJ0PR03CA0351.outlook.office365.com (2603:10b6:a03:39c::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7719.22 via Frontend Transport; Wed, 26 Jun 2024 18:15:07 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.117.161) 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.161 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.117.161; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.117.161) by SJ5PEPF000001CE.mail.protection.outlook.com (10.167.242.38) 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, 26 Jun 2024 18:15:07 +0000 Received: from rnnvmail201.nvidia.com (10.129.68.8) by mail.nvidia.com (10.129.200.67) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.4; Wed, 26 Jun 2024 11:14:48 -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, 26 Jun 2024 11:14:46 -0700 From: Dariusz Sosnowski <dsosnowski@nvidia.com> To: Viacheslav Ovsiienko <viacheslavo@nvidia.com>, Bing Zhao <bingz@nvidia.com>, Ori Kam <orika@nvidia.com>, Suanming Mou <suanmingm@nvidia.com>, Matan Azrad <matan@nvidia.com> CC: <dev@dpdk.org> Subject: [PATCH v3 0/8] net/mlx5: flow fast path validation Date: Wed, 26 Jun 2024 20:14:20 +0200 Message-ID: <20240626181428.1678402-1-dsosnowski@nvidia.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240612162426.978117-1-dsosnowski@nvidia.com> References: <20240612162426.978117-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: SJ5PEPF000001CE:EE_|SJ0PR12MB7005:EE_ X-MS-Office365-Filtering-Correlation-Id: 89032d66-f432-4bf8-32a1-08dc960be905 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230038|376012|1800799022|82310400024|36860700011; X-Microsoft-Antispam-Message-Info: 4UvqN0fTrJhFaJYGQwQFnJCssn8rRgk5ZV+lnreiwdm7Ta8VyJntHuiI2beansIv9DO8mRnJXhrJWtcOM/sKTFXn03N+hmaXtwJgbD4JhCxaUykkawyAXGXOpFQXO+gE9w7Y8irrcpjScwOtHkvGxj+o4ukqRjDC3ox9mU5ndy6Ib3Z3qKbMRk7/mkOGqZ2d/Hd7Dggfyiiu8JEKbzIw6sJ5kL88SBLvrokK+osw4UhlP+gjqyTZz1Nc3Idd6xc0m262n3Uh+gVq3mtiWw6tifz7SsgqiTEgrNcGrfmV7whLTgCb+JT+SMw36ISBySLDU/IC5EuTHRG5lg0z7Yc090Sar9IriYBub3rRLgw+RbyNaq4oRVG0BEe5oGifB5t2+WpVxU2RGAZ92hoPJP9SUe11C2bRTUPZNQhqYnhrDcvzHjJ1qk6RqHtwjaZGXf/z3MWXXPj+HsT9MEZPje/Zmh0pgKsqnurMOWDKVwJAQA0O3h6u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ia.com; CAT:NONE; SFS:(13230038)(376012)(1800799022)(82310400024)(36860700011); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Jun 2024 18:15:07.7693 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 89032d66-f432-4bf8-32a1-08dc960be905 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.161]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: SJ5PEPF000001CE.namprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ0PR12MB7005 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions <dev.dpdk.org> List-Unsubscribe: <https://mails.dpdk.org/options/dev>, <mailto:dev-request@dpdk.org?subject=unsubscribe> List-Archive: <http://mails.dpdk.org/archives/dev/> List-Post: <mailto:dev@dpdk.org> List-Help: <mailto:dev-request@dpdk.org?subject=help> List-Subscribe: <https://mails.dpdk.org/listinfo/dev>, <mailto:dev-request@dpdk.org?subject=subscribe> Errors-To: dev-bounces@dpdk.org |
Series |
net/mlx5: flow fast path validation
|
|
Message
Dariusz Sosnowski
June 26, 2024, 6:14 p.m. UTC
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. v3: - Rebased on 24.07-rc1. - Removed Depends-on tag for already marged ethdev patch. 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
Comments
Hi,
From: Dariusz Sosnowski <dsosnowski@nvidia.com>
Sent: Wednesday, June 26, 2024 9:14 PM
To: Slava Ovsiienko; Bing Zhao; Ori Kam; Suanming Mou; Matan Azrad
Cc: dev@dpdk.org
Subject: [PATCH v3 0/8] net/mlx5: flow fast path validation
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.
v3:
- Rebased on 24.07-rc1.
- Removed Depends-on tag for already marged ethdev patch.
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
Series applied to next-net-mlx,
Kindest regards,
Raslan Darawsheh