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 39107439EC; Sun, 28 Jan 2024 11:23:00 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id AF6FF402AB; Sun, 28 Jan 2024 11:22:59 +0100 (CET) Received: from NAM11-DM6-obe.outbound.protection.outlook.com (mail-dm6nam11on2057.outbound.protection.outlook.com [40.107.223.57]) by mails.dpdk.org (Postfix) with ESMTP id E03E640265 for ; Sun, 28 Jan 2024 11:22:57 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=O6/10mrXKCS3gkN6STC+qMHxw3zc1k32fPuM0r30SkPevnyh4vz+ip4nU2lthIUlwHudI1VsDuTxLdVBJnFfY6laKn2PkjkJPYNmbzbhydusnmVSfaih9+X69Oym+jnnw1MFrk4Un7BQ3zTdVlTlONTjTAJCMipypf3DPENZnpqCDq+mxPXsgDFhmBO0aSsx/AjnSTsReFp+DAFot5kK/756suYN/pg1e+neTmETd88dkaLjhj6taXoorrlPdO5Q7u81AVBP1GD1bgxMepbPBvhKwLsdCrTdJrzQJwiwMfwOJq7fnmOL5q/m6J5Q49wDAipyMwLcM2cocysUcbvL4w== 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=mrxxYDR2MuSKedo7X6rDeRqLaQWcU4WXkz7hC2gpIW8=; b=E7TwdgGxOfBcNp8xuEdBlh3kNblvgx4HWdANsUht+9bnmuyBCVLYRzEHxWyum4N6v2RwWl12xPrYZ1bOv3yjTvdptSvCh23IORp58/lrVcnz6WgE0o5ZuweO9NombQpKznC/a9qJdgSt+IEJIJg4cyO/dqo/gomdkNNoCyZRpV8aj+LM6/lBxUEW34y5WccMBg3AVLiqpz3t4UHG8VXUGUby+awl+XJyngt7YrRUgmxMlnYTRjzSqjcxQRkdh/m/F00tY7SYKF/61HhJ9lWWg0BQcD7ZgyVeTkpkacZX4FusC0+GP+4ZbJj1/UtZRcDOvXsUeYSIfYDEcR0LMZz++g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.160) 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=mrxxYDR2MuSKedo7X6rDeRqLaQWcU4WXkz7hC2gpIW8=; b=YQjp4PMQ7H19rYgOIgFh+zdhfPQfa6z1BGCRXl98NI8wmV/UDvqI4S+L516t3UErm/eYdTr6prlUrShwinjyYJqs1sPZfNKW/RkWbjUxbmxBHUrKVCAYIvU0Su/SLjpfPt95slqtd0swvJTS353CCAqAlkxr/zdLCtM0jDjFIyy3qfb50r9vKSt++z+11aSPzgGUVW/yooVM/84znvSHQpGuMzcrKe7EDVOB8qdITCDBqCHzYUVLNPXltThyT7alI40YULf54i+P31nnFujkeTGWcWJuK25y9NJaBAsnx8aTuKMrNY2WhKofMAD7005KRZwFdc1faLYeWEbyIbQOeQ== Received: from MW4PR04CA0163.namprd04.prod.outlook.com (2603:10b6:303:85::18) by CY5PR12MB9055.namprd12.prod.outlook.com (2603:10b6:930:35::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7228.31; Sun, 28 Jan 2024 10:22:55 +0000 Received: from CO1PEPF000044F7.namprd21.prod.outlook.com (2603:10b6:303:85:cafe::99) by MW4PR04CA0163.outlook.office365.com (2603:10b6:303:85::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7228.31 via Frontend Transport; Sun, 28 Jan 2024 10:22:55 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.117.160) 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.160 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.117.160; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.117.160) by CO1PEPF000044F7.mail.protection.outlook.com (10.167.241.197) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7228.0 via Frontend Transport; Sun, 28 Jan 2024 10:22:54 +0000 Received: from rnnvmail204.nvidia.com (10.129.68.6) by mail.nvidia.com (10.129.200.66) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.41; Sun, 28 Jan 2024 02:22:41 -0800 Received: from rnnvmail204.nvidia.com (10.129.68.6) 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.986.41; Sun, 28 Jan 2024 02:22:40 -0800 Received: from nvidia.com (10.127.8.13) by mail.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.986.41 via Frontend Transport; Sun, 28 Jan 2024 02:22:38 -0800 From: Michael Baum To: CC: Matan Azrad , Dariusz Sosnowski , Raslan Darawsheh , Viacheslav Ovsiienko , Ori Kam , Suanming Mou Subject: [PATCH v2 0/2] net/mlx5: add random compare support Date: Sun, 28 Jan 2024 12:22:32 +0200 Message-ID: <20240128102234.776861-1-michaelba@nvidia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20231225104534.2420737-1-michaelba@nvidia.com> References: <20231225104534.2420737-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: CO1PEPF000044F7:EE_|CY5PR12MB9055:EE_ X-MS-Office365-Filtering-Correlation-Id: eee0b25e-6515-4e71-e40f-08dc1feb174d X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: EFlVzLft9WWW3UOowOICIH8QCs+3jsltisj3THjn0NBjEo7EcXHItl7igCFPFdyQoA5hb2nqWv4j91nz9HsgV6FzePBp4uBifAL77G/ZzBydvnfWGwSoE4PDm4gBfoHZwwske3qGfG5rGtqQKt+otgHzSWop4OBnZfDAncqiKrPNcoB2n+tHeQ1vtTS8EweAjAemnsmaYX02pg1PIEC2sCnERi6cwgsTNLJAxAA5Q/c3e4dO8Ts9bp1YL0+QHl5ylWzVCWMFWtb0hc55H/poCej8XA/0+LPcdaVULN8CUBY1AjOpBBjZoOE2WXD/tuK9yEHB28fjOVTbWYGKO1l1Jg7xXXAS8aeMpc9GFTA3wU9FyK/shB+jFF3hZT9Wjzj1oEccGSeaN4pPByRWJBnt7OddiY6nMvuk/PW36KniBtm04Oe3QK+1IQNFV9MctU5SZ6u3VV/mXkeOGNXLyJ39qW9gwo3Tlu1SSZ5YDiGjKgoWesJdyjtcetLTioq1vmfsZs9F2X2jW/ZlLu2NbRQDSapbopxc8D4CC4p4IHs8cYeYmUwyWb/Qp7izd1oRdNpA9nKczO+CfYhjadEdukaEdJGce28cgZLvo1DWiVwl+KF8Xfb38GYosWTsSuXgdSW58MgcjeSsBg3UznO4+ZvIOGC0Y5Bs9KXAlNQjycBN7X6HZobVuLU3lOEWj7W3d9qqoEXm86K9+n5jZWXNOl/UTC0HZPP6hfgypbFOQvWGwSk= X-Forefront-Antispam-Report: CIP:216.228.117.160; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:dc6edge1.nvidia.com; CAT:NONE; SFS:(13230031)(4636009)(39860400002)(396003)(376002)(346002)(136003)(230922051799003)(1800799012)(451199024)(82310400011)(186009)(64100799003)(40470700004)(36840700001)(46966006)(336012)(426003)(6286002)(83380400001)(7696005)(107886003)(1076003)(2616005)(26005)(82740400003)(47076005)(36860700001)(4326008)(5660300002)(2906002)(41300700001)(4744005)(6666004)(478600001)(316002)(54906003)(8676002)(8936002)(6916009)(70206006)(70586007)(36756003)(86362001)(7636003)(356005)(55016003)(40480700001)(40460700003); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Jan 2024 10:22:54.7117 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: eee0b25e-6515-4e71-e40f-08dc1feb174d 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.160]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: CO1PEPF000044F7.namprd21.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY5PR12MB9055 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 support for compare item with "RTE_FLOW_FIELD_RANDOM". Depends-on: series-30606 ("ethdev: add RTE_FLOW_ITEM_TYPE_COMPARE") v2: - Rebase. - Add "RTE_FLOW_FIELD_RANDOM" compare support. - Reduce the "Depends-on" list. Hamdan Igbaria (1): net/mlx5/hws: add support for compare matcher Michael Baum (1): net/mlx5: add support to compare random value 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 | 243 +++++++++++++++++++++++++- drivers/net/mlx5/hws/mlx5dr_definer.h | 33 ++++ drivers/net/mlx5/hws/mlx5dr_matcher.c | 48 +++++ drivers/net/mlx5/hws/mlx5dr_matcher.h | 12 +- drivers/net/mlx5/mlx5_flow_hw.c | 70 ++++++-- 10 files changed, 410 insertions(+), 27 deletions(-) -- 2.25.1