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 A934C4412E; Sun, 2 Jun 2024 08:01:27 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 048D74028C; Sun, 2 Jun 2024 08:01:27 +0200 (CEST) Received: from NAM04-BN8-obe.outbound.protection.outlook.com (mail-bn8nam04on2081.outbound.protection.outlook.com [40.107.100.81]) by mails.dpdk.org (Postfix) with ESMTP id 1BDA54028A for ; Sun, 2 Jun 2024 08:01:24 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=BhXkQ1TjyjKRmPCop2+cUDu57B1RQ4+q1gdgaxIzmGQM1ni6fjfPLvomKZ4hocifqMyiX9cqkymUyg8++qKc+dXT+9JQ2oFnf6AXRPZ2jg7Sk3kUvRx+RwfKnZcdF/KdmK9l8QJvhegUBHTngMPo7LJMa6seV3gBvQZMDF0bRPk1JPDlGZkbpEW1dlmZgH2MuJIZx0bbYdqQsqYHk1H/B8Z0n29BGzTH6XL3v3XyixOdNIfr9j7TBhE2MfznEaYLhxFo5H+i2S/jPpr4s8s9s7Hs3UCIZaVb6j+pNWofgxkwBGVjvaXaiL7dRh6aO08LeebacJw6MEDZmptoEqjXGg== 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=rUcc614iNwLk7rtUBF6bhwa49Ns72YITl4Zrj0eKYkM=; b=E/GOL4GolPnlDB/o2GDcSfZ5P2qMKiXfqZp50GCoBoUDVkxksi/yqhQJJQRHvc9M3GKzald9MQyLGZemV797ipHMfDRsnKL8Sn6uByQrPbPB66Dwad8kWou4GEaPatTYGOKsmObgdgbeGxBRRAKym0RmM3pyte50N1ZLLjoIxmMGsYZaCuiphFO/jOaGNctZqXuSQRnMV5QT6zxSmVMwA7Z8sfwtSFNfmNWmhKrXeovGCQvblSRvS39VkNn9v7iBIObBTxeoS9J+7nWe/PY4ubw5B0ltM8gq86i6lAuqfVsYDicESBzzP63LyDZdVW09o6Kjf+rSsko1rebR+lmZ7g== 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=rUcc614iNwLk7rtUBF6bhwa49Ns72YITl4Zrj0eKYkM=; b=gGERC4bcMY7kcxqWnU0aDqhOnXffrMcDoevKJsRALQamsr1IOCp8XU6hfwzIBri2rMUZ3v5vJyQ0TCXgVMbDv77WUqPtroJRCbccGPEgFEJ2AMWCdPkZEo2ETNKjWWpSObRM2CqK6cpDDHsEx4Tf83to1FN8pVeeA6gWvJMlW9+wDTs2UI3DN0nLx0Wf7XIL2Abve0FOrwyqmksj8fR0kd/X2kDFkSaFs+NZSsE8c2jcqY9Fl/xdO26QZXPqdGwKZeL3OqOwA535XAuVwJE8129odxrJt0M6leDse1XeoAgL5z/NCqPFDViDeEnqqXWS/Li/oT1S1+6KkmlXPlC3qA== Received: from DM6PR21CA0012.namprd21.prod.outlook.com (2603:10b6:5:174::22) by PH7PR12MB9222.namprd12.prod.outlook.com (2603:10b6:510:2ef::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7633.17; Sun, 2 Jun 2024 06:01:21 +0000 Received: from DS2PEPF00003444.namprd04.prod.outlook.com (2603:10b6:5:174:cafe::d9) by DM6PR21CA0012.outlook.office365.com (2603:10b6:5:174::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7677.2 via Frontend Transport; Sun, 2 Jun 2024 06:01:21 +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 DS2PEPF00003444.mail.protection.outlook.com (10.167.17.71) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7633.15 via Frontend Transport; Sun, 2 Jun 2024 06:01:21 +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; Sat, 1 Jun 2024 23:01:07 -0700 Received: from nvidia.com (10.126.231.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; Sat, 1 Jun 2024 23:01:05 -0700 From: Gregory Etelson To: CC: , =?UTF-8?q?=C2=A0?= , , Dariusz Sosnowski Subject: [PATCH 0/2] validate actions in HWS table Date: Sun, 2 Jun 2024 09:00:48 +0300 Message-ID: <20240602060051.42910-1-getelson@nvidia.com> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.126.231.35] X-ClientProxiedBy: rnnvmail202.nvidia.com (10.129.68.7) To rnnvmail201.nvidia.com (10.129.68.8) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DS2PEPF00003444:EE_|PH7PR12MB9222:EE_ X-MS-Office365-Filtering-Correlation-Id: 5cf46c3a-ea78-406b-a39b-08dc82c96d5b X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230031|1800799015|82310400017|376005|36860700004; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?26+sGzFWp3ykAlAGlH5OVMGk/QvU61eeSFeeIXDZ6ZCXKxpSCAXHjJ2j2YGj?= =?us-ascii?Q?Im0w5b8bYnXnpbx8hVQXnDyE97YtNE09aRDKBxe0rsK4ps0bBnrF841QEOZO?= =?us-ascii?Q?QwBwDqiCuXpYXeLAzpnGdI4RzQAK4ggZZqpqP2+ARVY7EJ0HlkaVacFYmooM?= =?us-ascii?Q?UqbFXXHU1OkZEXQacaBifDwIvbsg1xCYkOJ6WuXpkDf9K+VrogijFUA3P9b1?= =?us-ascii?Q?50DGPEL2K0nZGO5AVLGGWRyGnlP4myh0DaYtyefwL4BKcdCKNBIB9fAAYZFV?= =?us-ascii?Q?Q9N2Tuh/S7gfkYHa+Pmjj2ztvn4SJ+l83NIed77UzKpraLAjbYDXTbzwaO2o?= =?us-ascii?Q?BiQ2r33VWWKcFkvGLkGV4531UwkvSZD7gXTEQMOc3LjQOBwwPepSXfuJ8fG7?= =?us-ascii?Q?Duu6U7EqkXvF9PAGaEilfzgS6tZQFYfGMpS7XyrhagpMGs1g8OjILbIPJJzo?= =?us-ascii?Q?gefau3iJBNhaXeaMgC2AtnSVYrvFjD6sSsjKnbfL5TJB8WFPvibc/MTVMYrJ?= =?us-ascii?Q?ApRv3N9wHkqXYfbKTawjNiSd8JEBGGbRrTJU4oQiW3NWHhCG5jWn858EeNZq?= =?us-ascii?Q?bXLCaK00dnwWzXaqHZ1Sf4rfuMMbNKoGfap7oTc61s3PZGNWysGsPOroCB6H?= =?us-ascii?Q?vJsG/pjA7gSlDYxoCDG7khxRAKzXw2EVZWtw+hYwc8pGGRHJPo2jLqWQNs+u?= =?us-ascii?Q?15465FLz078mnPL0v1U2YoDipxKJHl/tQp2tt45y3TcT3wsBSwdS838fZG94?= =?us-ascii?Q?zDEVptPSQjNBDklB2FRqPrqXib5F8Z5YWAAP/XTUeUCK9XXOMPvkzs9eIntW?= =?us-ascii?Q?bj7D7WiK62TaJqwbc/pGeh2IScB5BYL7dUqNhYl6gxRmw6eS0NaR72K4+DaF?= =?us-ascii?Q?HSCgJevshq22EnXivfG4owaCw+YyP0GDedGBo3mA4Pnhfx9ppS4dBn/skAI3?= =?us-ascii?Q?WFpt4K9u+aJ+t91Y4mANaCHAZx2ufKLQ++cz2pr8rdaj4yL94WxSi3s1w/4j?= =?us-ascii?Q?NHzuarsIF259jgL9fkt+qFA7O4FBdLYE7PnbvL1cNJGs60X8wELrkHMn26g9?= =?us-ascii?Q?ApQ1bpvysl/x8WtbWb0Qpkq6R36cyG7qt52cl250p0Bbtr8CH2nA2HNe5hRE?= =?us-ascii?Q?lIq93YOE/wGZW2gLDwmcEj7uGBEKZW9tmSQ+IF2RL55YiW1iyMJMMkGaPskr?= =?us-ascii?Q?YYvlQ02B+UUSwm3vTbpml9ug0eufgV75yBAZVt0VDGSClOUS+R7y4lQn/Nh1?= =?us-ascii?Q?SRl0WIhx19LEwUxnNgvPv2HtOtT7AaeWKbnf4umRnIUJVldADNgozNj0Knui?= =?us-ascii?Q?BNASc8ltbpyTSCU3WCXFl/K3LJreXejJqTxIPqXnppI2Vm4CjSfQw5jS16do?= =?us-ascii?Q?XrQvBPwXEvs8gUrXjk4GVtJ20YLb?= 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:(13230031)(1800799015)(82310400017)(376005)(36860700004); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Jun 2024 06:01:21.3121 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 5cf46c3a-ea78-406b-a39b-08dc82c96d5b 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: DS2PEPF00003444.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH7PR12MB9222 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 Validate flow actions before creation of HWS template table. Gregory Etelson (2): net/mlx5: fix access to PMD template API net/mlx5: validate flow actions in table creation drivers/net/mlx5/mlx5.h | 13 + drivers/net/mlx5/mlx5_flow.c | 15 +- drivers/net/mlx5/mlx5_flow.h | 33 ++- drivers/net/mlx5/mlx5_flow_dv.c | 20 +- drivers/net/mlx5/mlx5_flow_hw.c | 453 +++++++++++++++++++++++++---- drivers/net/mlx5/mlx5_flow_verbs.c | 2 +- 6 files changed, 467 insertions(+), 69 deletions(-) Acked-by: Dariusz Sosnowski -- 2.43.0