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 9556843BEF; Mon, 26 Feb 2024 14:04:57 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 3F77E42E65; Mon, 26 Feb 2024 14:04:13 +0100 (CET) Received: from NAM12-DM6-obe.outbound.protection.outlook.com (mail-dm6nam12on2054.outbound.protection.outlook.com [40.107.243.54]) by mails.dpdk.org (Postfix) with ESMTP id A2CD142E53 for ; Mon, 26 Feb 2024 14:04:09 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=fFas8BckWVMJ4ZTPM+cjLmYmdYBZ1VxRo/JHrMWXna5fBK2X5ahZELynvWkhZWu4t69zmjyeTUN+ZkQnFxFw8r7E5oxJ07+M+hFcri4Kc3Voxcg8eHjTdhYZ3QEuE7J8cuEuzLnHAbkVMfaRZomt5b+/rvpmZLmBUakQeH+aSchtWPVfRIsNtu/ePN0IjtMLEgCHF/vujWfQqUgsaNiGCY81hZ8cYgawPsFA21NNZ3JTensitARgxuAvufxIOIPAAqB+DNsHsHBBjcBDxe0fAzMFnSWM0LCgh73wHEr7zJiJE5wHYpcKdq6+t+exxGBwQU0B/diROp0UYcBCvzwJzQ== 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=drhiYxXe7HLtsj88xVQCQPCeTglZaxJZqC1kLGyJzuA=; b=ANv5d2wLSy0102zKl6E9+CDgHq0tqKwMHGZaTRi2pYVNK46iO8X3FRA9GxmaRoMjzkqv7GYgnMYGLKGz8u83EpFWp41EVmsValqh7BREyKMlJxtQbO1SAj982/bkS+P6ikgzDKqGKSBmB7j2viwtVKssAIGhLdBLOZzt+unKEISMl4tdowuBHuPKjbQraprgk73DIKJy00aOfKVWv5PHoUCEJWvf87Ul90RKf0nVIccJCCAA//m0IuT3dwJmIeyPUKmh5ubNZPIMhMTX7bDFFyt2e8h1JqIZ+TblxA2sSHKqmBQjBfa4O/IC24ZpkLOkf7HsarkpkP4gqSsfgc/7Tg== 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=drhiYxXe7HLtsj88xVQCQPCeTglZaxJZqC1kLGyJzuA=; b=bPdxEy0mkU5c0GllAGgyS+mheNMXpwB1T+HESeOfN9pacukFEEiwO1mIl5o5TACvx5IuzTFE4S74w0HgD7Ktl9tkJF7w+2Aox+BvwfR8gR/TclcykSM62zsPFnh0av1ypojhrGfKSxX/Zsz5s3EXF1GYEB5NjS88+mML7m6A0+0ZFRkl15pY0IvlCqXCCd6CkBfAnIeNdffY9mixTO6LVtytY+PFTSd8/CtZ+XcgJpeFZCmUwybAzp2gL0+0nCbMS5hCCoufXB42HQtifFTEinJSbVD67PrFgq3GkUaN4GvoJIcG57eSKa5dEJm5+O49m3uGwpVEWqANzvnhHr0faQ== Received: from MN2PR20CA0048.namprd20.prod.outlook.com (2603:10b6:208:235::17) by DS0PR12MB6629.namprd12.prod.outlook.com (2603:10b6:8:d3::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7316.34; Mon, 26 Feb 2024 13:04:04 +0000 Received: from BL02EPF0001A100.namprd03.prod.outlook.com (2603:10b6:208:235:cafe::ff) by MN2PR20CA0048.outlook.office365.com (2603:10b6:208:235::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:04:01 +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 BL02EPF0001A100.mail.protection.outlook.com (10.167.242.107) 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:04:00 +0000 Received: from rnnvmail204.nvidia.com (10.129.68.6) 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, 26 Feb 2024 05:03:31 -0800 Received: from rnnvmail205.nvidia.com (10.129.68.10) by rnnvmail204.nvidia.com (10.129.68.6) 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:03:30 -0800 Received: from nvidia.com (10.127.8.13) by mail.nvidia.com (10.129.68.10) 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:03:28 -0800 From: Michael Baum To: CC: Matan Azrad , Dariusz Sosnowski , Raslan Darawsheh , Viacheslav Ovsiienko , Ori Kam , Suanming Mou Subject: [PATCH v6 0/3] net/mlx5: add compare item support Date: Mon, 26 Feb 2024 15:03:21 +0200 Message-ID: <20240226130324.2981025-1-michaelba@nvidia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240214073015.2060103-1-michaelba@nvidia.com> References: <20240214073015.2060103-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: BL02EPF0001A100:EE_|DS0PR12MB6629:EE_ X-MS-Office365-Filtering-Correlation-Id: f2735427-96c7-43ee-883b-08dc36cb66d8 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 18mzN9slWhOJbLp28DXRdk6u4h6oIaOnEmYGjjsOt/Spx4RoOfI8ag9zZTVKLSZ9KkY2Alut+ImkFIMbsDlxN9h1ZBHzykggFqIa4nGcGZKPvP1lm3a4ZVZfHjLk1qUA5eClgQGMUqHd4TezqOP2Kfl14bMiVeGfv72TM3tVPEzxjMdjrL0vnafVJEM8OeSaME+lJgx41JXucdDJluaABW5GkgjBr4dWHpQJUtEpZQXqvIAhb4nGQMYD40GYb57V7N205/5xe9YPFjN4PNbuHXJm0+Q1NztFRTyx/t7/RtNChoQHe09N7IEarVaBwImm0hqadQl8ZlMy2AT+Pe/dUCvAuMut+UBtpxeGOoT+Cfao8kYzKbX0ZQMUKgpx4n0jc36cBCW1SnVOkFHIZvumKE0CW2cJdNks4U7HnNIYtqtcDoLqwVM0OropFpbgtPdGecPaaGS7aCxZej+N635NAH23nCDQz14qTYQF7qi0e3SvYAUzshnhXdbcZyCmzp9uDeDzw3yOOM4vrjN+lGhoJu7JVWb++9fSOE/Vus81daNEZhZ8lEhWZCYnitraTtta6v3auK5QVQMdQixN7Mik7AQXol4y9oa6yiQ2hyBEUYeLxzfLzl2gy2mEVxJ5P9h5VRuOsHPFr/1Xr0+O2cIhhkEekVvXIvy3wwehI5driHH5Ko7eBivz4p5oW+kiKj3khZOyTFOu9kzZojpuKp8EysCpcTxoMcQ/fc7qVfFjxWKsWHTvySTq0Ozpo+5AOd/e 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)(36860700004); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Feb 2024 13:04:00.8058 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: f2735427-96c7-43ee-883b-08dc36cb66d8 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: BL02EPF0001A100.namprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS0PR12MB6629 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. 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