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 E9285459CB; Thu, 19 Sep 2024 02:48:49 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7870A40156; Thu, 19 Sep 2024 02:48:49 +0200 (CEST) Received: from NAM12-DM6-obe.outbound.protection.outlook.com (mail-dm6nam12on2076.outbound.protection.outlook.com [40.107.243.76]) by mails.dpdk.org (Postfix) with ESMTP id A34DF4003C for ; Thu, 19 Sep 2024 02:48:47 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=bakZzomJ93zQcvz3MU2quyMFuE7/A5X7q3fA1HiQX6DlmAt5/VYAIv/p858SCm17QrFTc2i+OcQOedPUe/0ev1fyn4HFGEbn9U2aizh5oynC8ZPMrtRmyNEyT2rqhdpraU1eu9lQZePYmxAtKj1eRfMmv/btcUD1Gm+BxcD6mP4Aza8egRPTpQZq97xNaThutfoj5pv0AT6gf9A3/jlFrCWsrxgs1hKgKHlzdMlqIo1X4BvUxhJSE+i7QCgvhq+UwFG+epY1GtXDSEXc+BlS4mjThjU7+9rchiV2IJ2G/IO7nlGmnhVsiKiI6nGy/5OOKPHlqNNmnedgQSuI6zmKqQ== 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=wWu3HoYo4UtjF5Dq9xobwo3UwkW1/5RiBES8DN5YIfg=; b=R5ZxZReFr3a522lj+XAHxSgNNnMh3wnBBasI3bvV58c7zeuDsgzFUphxzO7yOYUzL2uQWbwL81tZfeTGXlr+83Wkrq25jIE4ukC1DyDUQWBQozJH4LjOu+X4nMgztjT4INqFkkuZoff/x5JzGju9aeaDneCI6edep2RwUqHUn1aoI1gdhoCwwZbv0TJKivbDKrewkJi0syQ4swbV6tYyge9zE5mDVJrjqS6qkHZbeiW2+33XlaCNpoRrBF9QlmabrLKwlwS8dzAE3AWxvhU+AprA/N2NMMuqnWZVjIPPA1sgSz+FPEbzI270U34al77l/aOl+6yMjhBdRUR3iwmfoA== 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=wWu3HoYo4UtjF5Dq9xobwo3UwkW1/5RiBES8DN5YIfg=; b=ayAsZn4YUgiTQx6/wemFjIxMxqsFVdhPwSHeaxdY0sKQWdEUj4vvVjA9DFAaK5jjM6b/hlRK1EJI/TaqFxE20GD09BkjLihreWB0rdap9sLcLLo1gtDWIor5Zh8k+uT+2PLwnoSc26hMO0UcPjJ/O4vBpTMNRogfXJo/vvZdJAipnSpV/QviiAsdptFoeYSOJFNmK+PAB6TwcK4q6AtVHfv/gB1Wi0k58Kvr5bUJXnVMgWRhTmv9Vn9dKEXJIPsd/BZ1qh+KNr9SQB2U9tIR3rma9gYYCQ8cTtnBpmK9yNRrniGfPYKjylnbus8IBkY7uJB97Gcaxs0fNbmUySbmoQ== Received: from SJ0PR03CA0017.namprd03.prod.outlook.com (2603:10b6:a03:33a::22) by SJ1PR12MB6313.namprd12.prod.outlook.com (2603:10b6:a03:458::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7962.26; Thu, 19 Sep 2024 00:48:44 +0000 Received: from MWH0EPF000A672F.namprd04.prod.outlook.com (2603:10b6:a03:33a:cafe::8d) by SJ0PR03CA0017.outlook.office365.com (2603:10b6:a03:33a::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7939.30 via Frontend Transport; Thu, 19 Sep 2024 00:48:44 +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 MWH0EPF000A672F.mail.protection.outlook.com (10.167.249.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7918.13 via Frontend Transport; Thu, 19 Sep 2024 00:48:44 +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, 18 Sep 2024 17:48:34 -0700 Received: from pegasus01.mtr.labs.mlnx (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; Wed, 18 Sep 2024 17:48:31 -0700 From: Alexander Kozyrev To: CC: , , , , , Subject: [PATCH 1/6] ethdev: add insertion by index with pattern Date: Thu, 19 Sep 2024 03:48:08 +0300 Message-ID: <20240919004813.3158356-2-akozyrev@nvidia.com> X-Mailer: git-send-email 2.18.2 In-Reply-To: <20240919004813.3158356-1-akozyrev@nvidia.com> References: <20240919004813.3158356-1-akozyrev@nvidia.com> MIME-Version: 1.0 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: MWH0EPF000A672F:EE_|SJ1PR12MB6313:EE_ X-MS-Office365-Filtering-Correlation-Id: a32cfd05-05b9-4c91-73b6-08dcd844d073 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|1800799024|82310400026|36860700013|376014; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?eXNZWcb3Cv+Ok/lOXsEteQc4QQp049YrW8BG0qCJXx/YvtnY422m+ttbA51T?= =?us-ascii?Q?uBtVZqdT2BJ+YE0xjPHk6p1N3U0L3U+xi26fOPPzkqMddlsy4H0eYDBV3jq5?= =?us-ascii?Q?SYI3ATja4OBXioNuDWQX2J6e0IGpmDuptX0iA+ivwtyziIeWd8jWRpM6pDJ1?= =?us-ascii?Q?LpoQnT3a4jL7VbBsil8U283J7P3LjJrxcmjbRgOQ8glZrrKerTGpc5p/o5az?= =?us-ascii?Q?WgBC5TrIt+7J/YDTTqFK/FB1EWGGpJJ/D3ndbiG+8LSbzL8PfT/eMeJiMzXs?= =?us-ascii?Q?8d7nO0aVZX4OvUvTj4G9mqDkxNLVW/yrw/2xddFAVPAimFauukLWMfizYcKK?= =?us-ascii?Q?iMR3COKdnPB8dFGg8p11Yb7Yt+rkh5+NFgui3NfEAvfLY0EYmYSSJjc5KWdE?= =?us-ascii?Q?BkRojcioRzr2rpfz0vK65nVMxb2KAMPU2xRsxKoIFvyzU0y9uPkfjtR2aGRn?= =?us-ascii?Q?zBGdVJjDssTOhZsSDOXHpy5bLXO3lllvm/TQH/yw0LYA4DuHGNnSY6iMtyht?= =?us-ascii?Q?WBFBBahH0+8pNATDSPShEdoa761sp1uYIb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V1/exfMzAk+dDJi23Y?= 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)(1800799024)(82310400026)(36860700013)(376014); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Sep 2024 00:48:44.4964 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: a32cfd05-05b9-4c91-73b6-08dcd844d073 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: MWH0EPF000A672F.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ1PR12MB6313 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 0ff70d9057..7056f17f3c 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