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 4238C45A2C; Wed, 25 Sep 2024 20:06:25 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 85D7E4025D; Wed, 25 Sep 2024 20:06:22 +0200 (CEST) Received: from NAM10-BN7-obe.outbound.protection.outlook.com (mail-bn7nam10on2060.outbound.protection.outlook.com [40.107.92.60]) by mails.dpdk.org (Postfix) with ESMTP id 2F553400EF for ; Wed, 25 Sep 2024 20:06:19 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=h+WZjbeyxyfkzo8nqGR5oLQ1W0FceNX7X+R8NH2PkeOy/7RvFc0cLfuTW1e6ZNc2BdaDTKZd6J1blXQuyE8YYLJBArFpEshLHHt/ozQ940uBEV2ObK4g3FeEIKrMUwU0H0NlUilJfgo7SF4vZPFsKhHyXgAmRj8kvX4ZJVYgr3bMsmMXO6WGHumC4UdVs8S3GxhiQ0UDapyiuXGNMuQa0SFV54xBwHnAWPC/eftZCub8p8h0LbhfWdBaPvuY9fUokodfnPCGtn6L35oXNdSzj++NBvEAJDYTDnzYvxabz4EGOraj32RKum8TNKupLKm8Br6hJzJzjWZuVxIdoRpUwQ== 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=cjV8j+b4r3lmSrCn4B3aPckj2q9FObfQMcrC3yPhKUc=; b=uM2lPWuVRfg3qNbvz2km7V3R8eEXXtuGqfQSuPueO0WAqi5rlF8jDDELq2x81WGX3mifiHpv28Y3Ew0C8rUE0co2rZ6CLOs+6iGphxTa886/u9wQ5h/HNOYSDpRzol9KRsTGyHae459/6q4qqZk/qbAkRYdVnxh5F0lCGxpuE91zZSX5xa3jChMrLC0Vvn0uWpY8qyRmuLeaH/WRQOYWXMP/91Som6b2r0bWQZ6rp3FCclOk6iNfdHh5vq4jvjDZX0UlRjm5613OGnPxMiPZ8GVxsfoyWbRC9B95hO4x2LGDPYqPyFsZbCFaXWH/p8HASbAXK0fiHjG27wJJ6RB0JQ== 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=cjV8j+b4r3lmSrCn4B3aPckj2q9FObfQMcrC3yPhKUc=; b=hYA9XtXhhHDGJk5ORNWTyjd++1f6wiZbAsjFL4dUSQnYXBXRC/J3cWWIyMw7lJjMnv+ntvNQaP7YAWCETrT1mOwwxOj5W+vIhZHucNBUiLoY2xujR3bQPsxhlChBhgMctghzr7clU5E6zYiibPVEKH1xzxI4osDzhCTW2UcfiLrxlJjrlBkUCrqndTOxUB3ee676NgKqY6a9j4xv0H3LDih3cQa6q1oXPUxvmt3EloEzCLzs+5QNwFhkFtCpFJZMZVWwKu5xrnIVQ7TErBX3t5p+ySVN0dIqSzVylg7+60ppU2BXG8k5CRcoKCer2g32A8uuv9hS3+eMDZ6IV6VXCw== Received: from PH2PEPF00003851.namprd17.prod.outlook.com (2603:10b6:518:1::76) by MN0PR12MB5882.namprd12.prod.outlook.com (2603:10b6:208:37a::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7982.28; Wed, 25 Sep 2024 18:06:14 +0000 Received: from SN1PEPF0002529E.namprd05.prod.outlook.com (2a01:111:f403:f90e::4) by PH2PEPF00003851.outlook.office365.com (2603:1036:903:48::3) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7918.24 via Frontend Transport; Wed, 25 Sep 2024 18:06:14 +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 SN1PEPF0002529E.mail.protection.outlook.com (10.167.242.5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8005.15 via Frontend Transport; Wed, 25 Sep 2024 18:06:13 +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, 25 Sep 2024 11:05:53 -0700 Received: from pegasus01.mtr.labs.mlnx (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, 25 Sep 2024 11:05:51 -0700 From: Alexander Kozyrev To: CC: , , , , , Subject: [PATCH v2 1/7] ethdev: add insertion by index with pattern Date: Wed, 25 Sep 2024 21:05:26 +0300 Message-ID: <20240925180532.3958656-2-akozyrev@nvidia.com> X-Mailer: git-send-email 2.18.2 In-Reply-To: <20240925180532.3958656-1-akozyrev@nvidia.com> References: <20240919004813.3158356-1-akozyrev@nvidia.com> <20240925180532.3958656-1-akozyrev@nvidia.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.126.230.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: SN1PEPF0002529E:EE_|MN0PR12MB5882:EE_ X-MS-Office365-Filtering-Correlation-Id: 8b48aadf-c379-4c5b-61c0-08dcdd8cbe62 X-LD-Processed: 43083d15-7273-40c1-b7db-39efd9ccc17a,ExtAddr X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|376014|36860700013|1800799024|82310400026; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?pjinCMdj4fXjK42mL+G74UVPWiOcZep27QpOgSJT7FjYR/LP1UxT4Avox4r9?= =?us-ascii?Q?UW3pbBF25Ayh2PJSuketmuyMHe2GhTg11eHsQcc7DrCQqYn+cziuHaViV1h9?= =?us-ascii?Q?tAf9Y1bZ62B61cmvSqch3E3ddLKouwHP9t0sJnj6JrvfbxpQUgfAH+KHbISL?= =?us-ascii?Q?wFvE/+TgLHgy9SjvXX8PWDot1lJ+QnNZaE1fFOKCUVDy4s0TfF96iBTHh8Vi?= =?us-ascii?Q?M1aMoKlloVD6MUdyvGEc5c+wunQlDk2VR3T8VNlp2K4gk2QNoEVsEQ4E0Ygu?= =?us-ascii?Q?yKSNLiCfYwBSAaOmhe9woaSbkxY9vAvk+3HEIWGi/WbXLuTLYRoCN5Yr4lOK?= =?us-ascii?Q?CUo0Sp926TPfFB4V7n9zk2i1RSlwgTWTauxtkXVyBalreT92OoWMxNgM9YN8?= =?us-ascii?Q?Y0wBek+mVrvZyAR+CuXmoHa6r2qfq1Izi2KIUhjtk/gKjSbdXW0zpv4IYxf/?= =?us-ascii?Q?EarknebO1PvZdGfixuMT+72OD2Sd3AI3B2KXwajCeAUVr8PDs19x4CO7ctJr?= =?us-ascii?Q?JjfAmVGHnBnMX7UoBQYJmnJesr6lTPo5gZlOEEFiiJJddsEG6eC+KRKxYMQb?= =?us-ascii?Q?jksbaEQmLR+gfjoYQkrX47nSILXOysJ7kBLcNMaTN6ZAMJ6RvLuDa9vqz5wE?= =?us-ascii?Q?PjXMSAzdpscAeNvs6w6VbqJMhiYA7R/YaJhP5rpu2B5o2yZYr2LzdIpt1DNN?= =?us-ascii?Q?ElfxecBZjRnmIRYi17RGqoRlH1NC0W5BS+belpr71a6LT+K8TEfnCp8sIYL5?= =?us-ascii?Q?9fGe3agFrATaiNDqvZdbHZvPtR3+P8ANwGItxwRkOoT2p6XlcUEpfadeterT?= =?us-ascii?Q?Fa1z5dzqi6+j4M6d/Oq6n26gJ4+dS5QGj8RI24B+P8LJOivyKXQdocR7nKCN?= =?us-ascii?Q?V9x/F0Cp6Gt9DhySN8fgmPLgwwO4Rji+q7JBdsBChF93Scg8QXE4tCgXTMs2?= =?us-ascii?Q?JKl1TGMhgEPx1KSjEiLheDHrZvhsIIeAxcFtf47hHWhWx8q1OTCrUCfaP7qe?= =?us-ascii?Q?uywz9J0w5BJAMIjNO8I2nMcyeOYkpmJL2kz3r4aVW83HONebKVydJpBbqWlD?= =?us-ascii?Q?8jTyodPtn2l61dSV0FdABsej5X5WJyTAKAaDHM1GhJ5t/3eN50s1q4+ZAZ5A?= =?us-ascii?Q?khqwsorznkh+zoz6ImhmrljBM3gY7Vfntc3Z6AH4hJDtyWABcG5iJY7TUXV1?= =?us-ascii?Q?hJYnheFGtZpsNZHTHaD3Wh0aJp2EXcHc5XUErEGwsTxY4N3w91H6InwKl7Ed?= =?us-ascii?Q?UvKks66kYMWkWZbF+0UqsP2zpi94Opp+m6ljTAlK05k8QOALS+6mTAnDPa8k?= =?us-ascii?Q?lkN/WK1W/vZIuDxchuor9GrfUzcYCXFbqo7I7rUr50WZrfX9fHZ8gvirdXkM?= =?us-ascii?Q?27zMsKsruzU5AeoH4pP749UVzhF2?= X-Forefront-Antispam-Report: CIP:216.228.117.161; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:dc6edge2.nvidia.com; CAT:NONE; SFS:(13230040)(376014)(36860700013)(1800799024)(82310400026); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Sep 2024 18:06:13.7796 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 8b48aadf-c379-4c5b-61c0-08dcdd8cbe62 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: SN1PEPF0002529E.namprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN0PR12MB5882 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 There are two flow table rules insertion type today: pattern-based insertion when packets match on the pattern and index-based insertion when packets always hit at the index. We need another mode that allows to match on the pattern at the index: insertion by index with pattern. Signed-off-by: Alexander Kozyrev --- doc/guides/rel_notes/release_24_11.rst | 4 ++++ lib/ethdev/rte_flow.h | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/doc/guides/rel_notes/release_24_11.rst b/doc/guides/rel_notes/release_24_11.rst index ef0124a9e6..8d311aead2 100644 --- a/doc/guides/rel_notes/release_24_11.rst +++ b/doc/guides/rel_notes/release_24_11.rst @@ -55,6 +55,10 @@ New Features Also, make sure to start the actual text at the margin. ======================================================= +* **Added a new insertion by index with pattern table insertion type.** + + Extended rte_flow_table_insertion_type enum with new + RTE_FLOW_TABLE_INSERTION_TYPE_INDEX_WITH_PATTERN type. Removed Items ------------- diff --git a/lib/ethdev/rte_flow.h b/lib/ethdev/rte_flow.h index f864578f80..6f30dd7ae9 100644 --- a/lib/ethdev/rte_flow.h +++ b/lib/ethdev/rte_flow.h @@ -5898,6 +5898,10 @@ enum rte_flow_table_insertion_type { * Index-based insertion. */ RTE_FLOW_TABLE_INSERTION_TYPE_INDEX, + /** + * Index-based insertion with pattern. + */ + RTE_FLOW_TABLE_INSERTION_TYPE_INDEX_WITH_PATTERN, }; /** -- 2.18.2