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 8AA76438CD; Mon, 15 Jan 2024 10:13:53 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5BFF9402C6; Mon, 15 Jan 2024 10:13:53 +0100 (CET) Received: from NAM12-DM6-obe.outbound.protection.outlook.com (mail-dm6nam12on2040.outbound.protection.outlook.com [40.107.243.40]) by mails.dpdk.org (Postfix) with ESMTP id 8DA52402C0 for ; Mon, 15 Jan 2024 10:13:51 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=WaiVtSA7HyuqXePTKRej6XfDKlsIP13gaMmg9Kmq74jwqBRpk6dhGsODNBci3qS7u8/I5D/5kXJspautTa87oGk4ssxTHke6HTnTkTp/U3zcyE8lj0cmC+Wi/6TDDpK867JhM/0bD6YcOldNaz8Aw9Bhye3fFQ2k1oz5i61n0NcI0xeq5q/i8gpULcX6I6Iqc5QiffmjbQniKUUJ52CXbtTx/aJCfIqxHDXG7jH0jEYJlSlJUwRCtMPeYXEH1wMAOQR90ouiH0b6N1O45lh2ucPWF14kUL2vC82Rq88e0zidzlnvuJUEpvl7HRXFMJzagt6UXHdA3PmpommYtCfWIQ== 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=EaJ1WXRpB3yA7CmGNtQZTq1vlTkiT65/+cXAqtpra6o=; b=JhVh1B7zXqyJ8qyptXnyv3vqatbjvhh+1OvnstEje6s3L1itVbOYATgcpxUvRE3fF/lLLKe7VgVqVraDCP08VQsJKrxUFPRyjYYy7QIFI+WEJ2x0PlOqr5S9I1jzM2Gfp/Io0XtPlnyTHRbwj4PqdXxN+MjtDsJyYeuyk4gZf2Y71a0U9rKRH5DW82IxwtZDj8KUfyIfazpNcQhnsGm7JUDyXu1ZOAx1NZqlTEk409jgg/ZAIv9UytHbOFklkvt6qnynl4a5qBZirig79u++zNa7Q7ucxj2Mt38Q3cS6DekLH2E6iqr5o8MwAa+DVxDiidOnbZL+gokOJHu/gOlQ1Q== 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=EaJ1WXRpB3yA7CmGNtQZTq1vlTkiT65/+cXAqtpra6o=; b=sNJX9W8yIkWSZQhJFWdpl+26/rBQoq2/T+GmdssOgtjYHjCezgBTHLdqCxNN+3rK3uuId3uNMn5V44+FLejh4puxjMndvw0c+Ns+KCIReKZKiL5LoDj2EPvVsT8YnriJS/0PZ8SiILV7pKTOt/yh9VYMmB9zlPyV5WTUH3aNqqwIxR1tHzlgStaYf7DGyBO6Ff8CByRTmLd3gIFnGkUYdkRKVoZ3+Gl8EQdq5xLn9KXnh2nhmASd/CPsa3CmhyHdylLhSVFGnq/F1bEcPIsJ6JguPoQ23A5Qh4S7G0DfCeI2Qbw7b6fEf+HlvlT9yeISjWLmZ6Ici+2tiH1qL6C0vQ== Received: from CY5PR22CA0100.namprd22.prod.outlook.com (2603:10b6:930:65::28) by IA0PR12MB8745.namprd12.prod.outlook.com (2603:10b6:208:48d::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7159.23; Mon, 15 Jan 2024 09:13:49 +0000 Received: from CY4PEPF0000EE3B.namprd03.prod.outlook.com (2603:10b6:930:65:cafe::55) by CY5PR22CA0100.outlook.office365.com (2603:10b6:930:65::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7181.26 via Frontend Transport; Mon, 15 Jan 2024 09:13:48 +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 CY4PEPF0000EE3B.mail.protection.outlook.com (10.167.242.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7181.14 via Frontend Transport; Mon, 15 Jan 2024 09:13:48 +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.986.41; Mon, 15 Jan 2024 01:13:36 -0800 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.986.41; Mon, 15 Jan 2024 01:13:34 -0800 From: Suanming Mou To: CC: Subject: [PATCH v3 0/3] ethdev: add RTE_FLOW_ITEM_TYPE_COMPARE Date: Mon, 15 Jan 2024 17:13:15 +0800 Message-ID: <20240115091318.1053433-1-suanmingm@nvidia.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231219013337.531548-1-suanmingm@nvidia.com> References: <20231219013337.531548-1-suanmingm@nvidia.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.126.230.35] X-ClientProxiedBy: rnnvmail201.nvidia.com (10.129.68.8) To rnnvmail201.nvidia.com (10.129.68.8) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CY4PEPF0000EE3B:EE_|IA0PR12MB8745:EE_ X-MS-Office365-Filtering-Correlation-Id: 0c850f9d-b5ae-42cf-052f-08dc15aa489c X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: LCPyIsVBG1GkzL5NW0uQpy9vlQDUQrfEbVafr6Qcn6E7eSPNiO+vJs4uUFw6UwZCpjb6Qv6rKvsXuJZNDRsk87nPPDrP3N9tzxE3Em/uTOZ7DWVAPU/7DFeYyy7CBhVAzlJtlbtiaAskd4zF/EhUbnCXtus/Q7L9J8dD42YiWV8oTsEcb6XMfg90/Trtumgj3MiiSpuAqwOm3npqN8rrkCYSyMPcDEgZWdFPlBu2o9FkLNwrGhTnMFNSwLs/I0t9E7xYN4ZFh1N1UQG7F0KUpaWLzNAXhxxmnNJP1PXXQks67nm8lt2qun4gV26JRnWq2DDRNQze9HDdf1Jol1F+OYbb/uA3HmEb3RPj+uoUMVhukRu9ppWb5yUPuolHgjLhC4nwUkaeZX5jZArAXmw1DcY0jwbRfqmpFFNFIKC71LlaiZOZDKK+jnCpzLPsbhpcwccDtYRTi702OtAZaIejd2h4kFgUC4D37zJ37QbM48bGNdQl8y+2of6OX69dkQQGudyhFRAiWdRMrXVQnm4TRA2V5fcuXfwXAnFYj/ugmq+oX6z7LJJIQgmQzq/wruSHG9BHBPa3MiIcx4bsKxp7F8qtt9kRKVrUU62DWbcIzYRF7Wz2CuKV+GaRmbWj2CA8XT6/V8ZnUCC9jULTbdX6jWTIFE2MYyy91xRUjRwu72eqx32FqdsitzXzfPjMsODfFpU/aKgzvmwzz+eSZLlpYeB1+v6VTf6sRkv0xrF4+48= 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:(13230031)(4636009)(346002)(136003)(376002)(396003)(39860400002)(230922051799003)(64100799003)(82310400011)(186009)(451199024)(1800799012)(46966006)(36840700001)(40470700004)(40480700001)(478600001)(83380400001)(40460700003)(6286002)(426003)(8936002)(4326008)(8676002)(37006003)(2616005)(70206006)(26005)(6862004)(6636002)(316002)(70586007)(36756003)(82740400003)(36860700001)(7696005)(7636003)(1076003)(16526019)(336012)(86362001)(356005)(55016003)(47076005)(6666004)(5660300002)(2906002)(41300700001); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Jan 2024 09:13:48.5482 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 0c850f9d-b5ae-42cf-052f-08dc15aa489c 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: CY4PEPF0000EE3B.namprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: IA0PR12MB8745 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 The new item type is added for the case user wants to match traffic based on packet field compare result with other fields or immediate value. e.g. take advantage the compare item user will be able to accumulate a IPv4/TCP packet's TCP data_offset and IPv4 IHL field to a tag register, then compare the tag register with IPv4 header total length to understand the packet has payload or not. The supported operations can be as below: - RTE_FLOW_ITEM_COMPARE_EQ (equal) - RTE_FLOW_ITEM_COMPARE_NE (not equal) - RTE_FLOW_ITEM_COMPARE_LT (less than) - RTE_FLOW_ITEM_COMPARE_LE (less than or equal) - RTE_FLOW_ITEM_COMPARE_GT (great than) - RTE_FLOW_ITEM_COMPARE_GE (great than or equal) V3: - fix code style missing empty line in rte_flow.rst. - fix missing the ABI change release notes. V2: - Since modify field data struct is experiment, rename modify field data directly instead of adding new flow field struct. Suanming Mou (3): ethdev: rename action modify field data structure ethdev: add compare item net/mlx5: add compare item support app/test-pmd/cmdline_flow.c | 416 +++++++++++++++++++- doc/guides/nics/features/default.ini | 1 + doc/guides/nics/features/mlx5.ini | 1 + doc/guides/nics/mlx5.rst | 7 + doc/guides/prog_guide/rte_flow.rst | 9 +- doc/guides/rel_notes/release_24_03.rst | 8 +- doc/guides/testpmd_app_ug/testpmd_funcs.rst | 7 + drivers/net/mlx5/mlx5_flow.c | 4 +- drivers/net/mlx5/mlx5_flow.h | 9 +- drivers/net/mlx5/mlx5_flow_dv.c | 10 +- drivers/net/mlx5/mlx5_flow_hw.c | 73 ++++ lib/ethdev/rte_flow.c | 1 + lib/ethdev/rte_flow.h | 326 ++++++++------- 13 files changed, 703 insertions(+), 169 deletions(-) -- 2.34.1