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 8AF3543BED; Mon, 26 Feb 2024 14:19:36 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 6EE0042E51; Mon, 26 Feb 2024 14:19:36 +0100 (CET) Received: from NAM11-CO1-obe.outbound.protection.outlook.com (mail-co1nam11on2043.outbound.protection.outlook.com [40.107.220.43]) by mails.dpdk.org (Postfix) with ESMTP id 9B36042E4F for ; Mon, 26 Feb 2024 14:19:34 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=hHb7ECzmJ7rtZzwUmIt2nTFRhZYhWKTfPVnWiY8Hx5wnF7E+1PyhAolVqjHXPIiIOWJ9JmVR87Gue8jP4I7EopAXPDz5P2kdfGrrE8Rhe3S1sOcy3QYGjSyv1imV2ZNDrFtcKQvBsJ8O33DUwIFUyZgRLnM7Z6xMBOjyZzAHfKc3Y4lqgzBG4txVkt4R/ytY/YjIi1TUFnizxxVxlLU4bytDTjILjQYEsdnGWQYGIkBCVQTJ2zHgE3jwcC5huGq6gG17mXxBobbea3SSdmYSb6aLdUPoXsNsTNa9/Jz7iAK8c/UnTcL9wTS4atCShY0yKAYD2KHMPxF7q47KLN7evQ== 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=KY8XEGoDbE0jqpyHiXE6GYZryrzIi/S/lYbGjlY8iEY=; b=dS8LyxKm2kJTy19noyEE/iRx5+OTceAZ3v50GgtAnlMsqucmoHoDfpKEdDcPd3r4fFJSYAjB02EsIoP8U1MXCrcW47YNF80bdtHr5zTOHdl0GoCDyiX05QqfIjXUT/JQjGoeIWz5+wmZPhma51/8g7GymoIsYEIOigzWR4LWJFKrvz7mQp4zILhaXfogr6XoKlMVNJm+9slBxt3hok735AGQci1o8uu1r7Nj89DCb9Vt9nkEtrRg/+VVWu0qNErDruLqj1JGdnjQacFIwGMt3pXzecr913K8kxQDLyBnnD6nAYcy7WuMm+nfm14rNgsl9U3E5DobO/2LgQNzRZkkdg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.118.232) 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=KY8XEGoDbE0jqpyHiXE6GYZryrzIi/S/lYbGjlY8iEY=; b=EXlv7kwURd5pFfdvWB5J+WLqgaiD2BaO1aYrnukBfUIZNHPcPgftN22G3s04lV47e9k8MNabHAXIPumLX0LzZuq44tSYIzsLAPQQTXcJ+eQ8LDqmGziPXTRom0X4WU+DC4IGWBLMkPyHg9sUiulxqKXukrOJl2BfyH16OxLSDn/3Ww9unrjGZVceJGI13eulH4tm5W/0UEXkHXcVlNlt5GJI6rdel/wsfg/3WZPjAUdsTRJ558lGZG5n0qnttP6fLFrkzuZiKvz9fZP2bmi01AIVCE6YD1XKNMQ6de8Y18404z3YXkA1d1GlP/B1ilt3O5yf5oPxxJfBPoF1zbQXoQ== Received: from PR1P264CA0046.FRAP264.PROD.OUTLOOK.COM (2603:10a6:102:2cb::17) by DM4PR12MB5793.namprd12.prod.outlook.com (2603:10b6:8:60::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7316.27; Mon, 26 Feb 2024 13:19:22 +0000 Received: from SN1PEPF0002636C.namprd02.prod.outlook.com (2603:10a6:102:2cb:cafe::cb) by PR1P264CA0046.outlook.office365.com (2603:10a6:102:2cb::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7292.49 via Frontend Transport; Mon, 26 Feb 2024 13:19:18 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.118.232) 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.118.232 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.118.232; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.118.232) by SN1PEPF0002636C.mail.protection.outlook.com (10.167.241.137) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7292.25 via Frontend Transport; Mon, 26 Feb 2024 13:19:17 +0000 Received: from drhqmail202.nvidia.com (10.126.190.181) by mail.nvidia.com (10.127.129.5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.41; Mon, 26 Feb 2024 05:18:54 -0800 Received: from drhqmail203.nvidia.com (10.126.190.182) by drhqmail202.nvidia.com (10.126.190.181) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1258.12; Mon, 26 Feb 2024 05:18:54 -0800 Received: from nvidia.com (10.127.8.13) by mail.nvidia.com (10.126.190.182) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1258.12 via Frontend Transport; Mon, 26 Feb 2024 05:18:52 -0800 From: Michael Baum To: CC: Matan Azrad , Dariusz Sosnowski , Raslan Darawsheh , Viacheslav Ovsiienko , Ori Kam , Suanming Mou Subject: [PATCH v7 0/3] net/mlx5: add compare item support Date: Mon, 26 Feb 2024 15:18:45 +0200 Message-ID: <20240226131848.2982242-1-michaelba@nvidia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240226130324.2981025-1-michaelba@nvidia.com> References: <20240226130324.2981025-1-michaelba@nvidia.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-NV-OnPremToCloud: ExternallySecured X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SN1PEPF0002636C:EE_|DM4PR12MB5793:EE_ X-MS-Office365-Filtering-Correlation-Id: 7802c08f-bb0e-4a2d-3277-08dc36cd891c X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: eAMtzjQzvjnaBbTqCpTVcJHHj661KPMHABzKE7DMrYJdTkIbWNAJDOKb5LE/3DwOKC4Mo2tCrBSzsYGoTnoj8P9sl8LsXYptqL/VC7D/vrizo+2Zrtytk3FwRx/rDxAM80kH/pxwpDS5FFGlf1h7+XGDHU1Byoo1lXPTGqDb2gyKjzXzfR3NSm6oUeDlFyeqb/999YQ5a2UlW9YxFVHEFqPAD+NzryN8ECF3B/NefPwPAcP4x83IiJp2b1Xaxv677A3SFUMS+H22lzGJqUtiUK6bBYJdXCWfegy4zl35DKxlKc9OOY1IFlK1Oy1ZmiJ8zfchlGQjl7y/25EmLFadYmd2YgaS48UC+kNE+BtrzoViMSb6fcxquVKEc8lcOj+AI4lS0TK5Rh/JdpOyzFjZCsIcqBsCQ04LnzpKpE//FCii7SlUUzIYMDkjSTCJSVNu3P6py1zdym2HzegJob9IAQZCGkV7aItKdJ0uqPiPUfJXtYrcwRSj+FdviJW1NWVqqHBgQ4XwXWDC/wDeMNekImM5ODK0YLeKUXrII9WjdEogGusbhk1pbj3T5mn2RcyzVYpSIoQVeN29sGegeqeU+hrf94Bo4Mbr/vsOgSGuy+PPELOr2cG/XNlOtxhgKNpmrS6RFxCrRUN6xpz0lQb1+aVvnVw8BisZvR+fp9b/H9ikEEXsSEDgg29679l/hXQCtTZ3bbPOYcehxaL07CXf46COijEvmuL0PRK8hkhG+pvogMR7ACT/isK/alH9q+hM X-Forefront-Antispam-Report: CIP:216.228.118.232; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:dc7edge1.nvidia.com; CAT:NONE; SFS:(13230031)(36860700004); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Feb 2024 13:19:17.5039 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 7802c08f-bb0e-4a2d-3277-08dc36cd891c X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[216.228.118.232]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: SN1PEPF0002636C.namprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM4PR12MB5793 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 Add HWS support for compare item with: - "RTE_FLOW_FIELD_TAG". - "RTE_FLOW_FIELD_NETA". - "RTE_FLOW_FIELD_VALUE". Add HWS + PMD support for compare item with: - "RTE_FLOW_FIELD_RANDOM". - "RTE_FLOW_FIELD_ESP_SEQ_NUM". v2: - Rebase. - Add "RTE_FLOW_FIELD_META" compare support. - Reduce the "Depends-on" list. v3: - Rebase. - Fix typo in function name, r/tranlate/translate. - Fix adding a line without newline at end of file. v4: - Rebase. - Update documentation. - Remove the "Depends-on" label. v5: - Rebase. - Add ESP sequence number suppoert and rename the series accordingly. v6: - Rebase. - Add "Acked-by" from v5. v7: - Rebase. Hamdan Igbaria (1): net/mlx5/hws: add support for compare matcher Michael Baum (2): net/mlx5: add support to compare random value net/mlx5/hws: add compare ESP sequence number support doc/guides/nics/mlx5.rst | 10 +- drivers/common/mlx5/mlx5_prm.h | 16 ++ drivers/net/mlx5/hws/mlx5dr_cmd.c | 9 +- drivers/net/mlx5/hws/mlx5dr_cmd.h | 1 + drivers/net/mlx5/hws/mlx5dr_debug.c | 4 +- drivers/net/mlx5/hws/mlx5dr_debug.h | 1 + drivers/net/mlx5/hws/mlx5dr_definer.c | 261 +++++++++++++++++++++++++- drivers/net/mlx5/hws/mlx5dr_definer.h | 33 ++++ drivers/net/mlx5/hws/mlx5dr_matcher.c | 53 ++++++ drivers/net/mlx5/hws/mlx5dr_matcher.h | 12 +- drivers/net/mlx5/mlx5_flow_hw.c | 73 +++++-- 11 files changed, 444 insertions(+), 29 deletions(-) -- 2.25.1