Message ID | 20240919004813.3158356-2-akozyrev@nvidia.com (mailing list archive) |
---|---|
State | Superseded |
Delegated to: | Ferruh Yigit |
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 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 <dev@dpdk.org>; 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 <akozyrev@nvidia.com> To: <dev@dpdk.org> CC: <dsosnowski@nvidia.com>, <orika@nvidia.com>, <thomas@monjalon.net>, <matan@nvidia.com>, <ferruh.yigit@amd.com>, <stephen@networkplumber.org> 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: eXNZWcb3Cv+Ok/lOXsEteQc4QQp049YrW8BG0qCJXx/YvtnY422m+ttbA51TuBtVZqdT2BJ+YE0xjPHk6p1N3U0L3U+xi26fOPPzkqMddlsy4H0eYDBV3jq5SYI3ATja4OBXioNuDWQX2J6e0IGpmDuptX0iA+ivwtyziIeWd8jWRpM6pDJ1LpoQnT3a4jL7VbBsil8U283J7P3LjJrxcmjbRgOQ8glZrrKerTGpc5p/o5azWgBC5TrIt+7J/YDTTqFK/FB1EWGGpJJ/D3ndbiG+8LSbzL8PfT/eMeJiMzXs8d7nO0aVZX4OvUvTj4G9mqDkxNLVW/yrw/2xddFAVPAimFauukLWMfizYcKKiMR3COKdnPB8dFGg8p11Yb7Yt+rkh5+NFgui3NfEAvfLY0EYmYSSJjc5KWdEBkRojcioRzr2rpfz0vK65nVMxb2KAMPU2xRsxKoIFvyzU0y9uPkfjtR2aGRnzBGdVJjDssTOhZsSDOXHpy5bLXO3lllvm/TQH/yw0LYA4DuHGNnSY6iMtyhtWBFBBahH0+8pNATDSPShEdoa761sp1uYIbQMm8v+q8FIvkKHSzHyEuq1YvFHla0Y6JFMIdOEoTnJNCNLok1+x1NJ3IkS2S7nZFKuSp57jd/Zjg/ejFZjC+DXQDmH+0ZWafDbw2RI+PDq3V+iuZqfAIf1o9WZXkb99y3wK6G3Nxo1VcVDR+3Es6s3pECi+2zHFFt54z9von8uGFJjgpks6izpF702+0qkrjrJ3c4kX6QpeN8ICoJxk0/TBq0Lzs6DAds9GIAZrjMSPfHKXF/2e4StpF4OJB2241i0YorFN4NjCwxh+Ad95j42z620POmYULOkDB0aMkAaF//F1fnc9mTVBbUQwHDOKX4i84kXgU3JV4MZ5k9bN3yH7T97Em55VlHkTgTqYjedz+8CGmNhvmJ26quxge8FyV+ZEUQuFlkPC+94fL0g9zw2QctvVZF/1iBuxK6Jf9NTLuN/xzfBuB9jjCbSJdntUlJXGY3IGWGh1oHoZwOtFFVmhwlX8FbTVvVL9zzmyRVF711Rs702ZfYPdwB87T2nyTOLessW5WMF032sEogcEf8XEcfkCwysJoYnTIO9ggbZQO+M+pU9gd4HrpKfmnMTrPIKd8P+CODJOa56p71qAq60o49UA5Yxs+jYSQT0CPWaLXp0dIkd2+tLZr2aG7OE4192N67hZonM23neTY/3Xd1HjIon25ZYyAZ76ZFzw83F5bP/uUVEBIliBe53rzsXpb793SMbGYuHxVVCQqdl8HA3uVtpUC5EP3FjDZDVlTXDzJCjSi1rB3sTEqgT9jcWrV0FmLQDiLoi21fjTc/cEQ4US3DWzZ9V7adeZS8usYDKkYBah8VD+I45UCeJ4HHRTEflSzO99WyhxdKq/N0FVqEcAvedcmPVljmpI4x47cXQySNyipV1/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 <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 |
ethdev: jump to table support
|
|
Checks
Context | Check | Description |
---|---|---|
ci/checkpatch | success | coding style OK |
Commit Message
Alexander Kozyrev
Sept. 19, 2024, 12:48 a.m. UTC
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 <akozyrev@nvidia.com>
---
doc/guides/rel_notes/release_24_11.rst | 4 ++++
lib/ethdev/rte_flow.h | 4 ++++
2 files changed, 8 insertions(+)
Comments
> -----Original Message----- > From: Alexander Kozyrev <akozyrev@nvidia.com> > Sent: Thursday, September 19, 2024 02:48 > To: dev@dpdk.org > Cc: Dariusz Sosnowski <dsosnowski@nvidia.com>; Ori Kam > <orika@nvidia.com>; NBU-Contact-Thomas Monjalon (EXTERNAL) > <thomas@monjalon.net>; Matan Azrad <matan@nvidia.com>; > ferruh.yigit@amd.com; stephen@networkplumber.org > Subject: [PATCH 1/6] ethdev: add insertion by index with pattern > > 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 <akozyrev@nvidia.com> Acked-by: Dariusz Sosnowski <dsosnowski@nvidia.com> Best regards, Dariusz Sosnowski
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, }; /**