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 9DEA9439FE; Mon, 29 Jan 2024 14:44:37 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 66349402C2; Mon, 29 Jan 2024 14:44:37 +0100 (CET) Received: from NAM12-BN8-obe.outbound.protection.outlook.com (mail-bn8nam12on2051.outbound.protection.outlook.com [40.107.237.51]) by mails.dpdk.org (Postfix) with ESMTP id C768F400D5 for ; Mon, 29 Jan 2024 14:44:34 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=PCSkA7RrhK2xcpPqurbw/v6W0wT/9KFYnS5c/pS/MiNRLKgXXBGvN8pekI6XztdCNii21wvkAY0HrHUOPBxesYG609R1a4Zg1av8xt2aNiQ0zXgqBBtFSv8gP3FAgsJg7bEv1lLXl3i/pXR41aLNTkSIy+j0hjAA/zb6ZvVDn8ZVHYy9aUBP7Z3k9sFG2mtMVjtgTvmqTKKzUu5BkGHgA2SWC97ATnoiK+rLgsJSZcDc0eFlM76U7e9tnyDKy/ryBBaSUUhJsN1fpK1SwykMxpWcU6hyYn+7ZJ9k0Zgbu0pjcSpv8amCjyUtMdVpsoLHfo2L6RYElPtI6H2ixKsOPA== 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=yKifz3lOVUskTaNKB7t4EOHyEAnrm1X+uqIhZG9Ls7c=; b=X2JtDZ4uM/Zo06x6ckrHSg/ZsQ4nj4djNZogbTkfEmqklR/LIz972xNtzWQtRqfmJXBxQ5kcnUeAZviD3G2zhlttGvOoMBZaJ8GKxyGcvZToSZdZrSIqCi7ltP6D+O6HQzX7HZYwrrTWWCIAUn9bUIO0Q6oJ2EnJlxZjQzMWaVnGKaydOwIg+nPNziI3D6DMuKuYl2igReNLORLQQN91uBeG2p/YpRLnQzzG2QlOJmyokCH51h4eMze7AKHN3f4VtQzb7BZlf5EbFvQ3NhkJ6syDBL8xNoH3YogTXH9wNViSalHdc8C+uw3IXOBTgKKTH44pNGHP7cns0cXEFMCgQQ== 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=yKifz3lOVUskTaNKB7t4EOHyEAnrm1X+uqIhZG9Ls7c=; b=TMidOo97Dg3KAn7nY9OEIcXEkC2yLnkt1OngWWkDLkcmXiY3jhcFY1OHVC81uCi7Uhcop1wQOWaBFrKy2NtfbMvtQXYETPrbFJP6n7DAT6i6N/9T8RXFvqgxbJB5teiUwz6AS12WsLtBNUB+zZWuR03blm/LBs8nZrMaqGOU92362NDKy1esGBu2FB8UUjGz7DQpu1FW+Jd7BOKqryx1ckGEtG5aXcLyXw7lhunDvEXoHw03er0JGyLNW0DrXe/ddFSxcrphKtES+2e7hce+an5Wz24m10YnGsbMYmReAjz9kiTL0m9XKMgNXQwag1tf02iTHUXO7IZnOwD6wyfQFg== Received: from MW4PR03CA0141.namprd03.prod.outlook.com (2603:10b6:303:8c::26) by SA1PR12MB7412.namprd12.prod.outlook.com (2603:10b6:806:2b2::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7228.32; Mon, 29 Jan 2024 13:44:32 +0000 Received: from CO1PEPF000042AA.namprd03.prod.outlook.com (2603:10b6:303:8c:cafe::7f) by MW4PR03CA0141.outlook.office365.com (2603:10b6:303:8c::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7228.34 via Frontend Transport; Mon, 29 Jan 2024 13:44:32 +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 CO1PEPF000042AA.mail.protection.outlook.com (10.167.243.39) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7249.19 via Frontend Transport; Mon, 29 Jan 2024 13:44:31 +0000 Received: from drhqmail201.nvidia.com (10.126.190.180) 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, 29 Jan 2024 05:44:25 -0800 Received: from drhqmail203.nvidia.com (10.126.190.182) by drhqmail201.nvidia.com (10.126.190.180) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.41; Mon, 29 Jan 2024 05:44:25 -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.986.41 via Frontend Transport; Mon, 29 Jan 2024 05:44:23 -0800 From: Michael Baum To: CC: Matan Azrad , Dariusz Sosnowski , Raslan Darawsheh , Viacheslav Ovsiienko , Ori Kam , Suanming Mou Subject: [PATCH v3 0/2] net/mlx5: add random compare support Date: Mon, 29 Jan 2024 15:44:08 +0200 Message-ID: <20240129134410.885145-1-michaelba@nvidia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240128102234.776861-1-michaelba@nvidia.com> References: <20240128102234.776861-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: CO1PEPF000042AA:EE_|SA1PR12MB7412:EE_ X-MS-Office365-Filtering-Correlation-Id: 551c9beb-edde-4890-b9a7-08dc20d06c28 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 9DY98kGCoYJjTPYA92Ego2lco7BpBmSBdKRtfKJ/IQEdK2y4J/1HVLLEKHdzf83XroyDWejW3szOLZNp+7pQiYumq1VVpYv3fmCCLkgQWSG/hmNxMix2+Gn5NiqHrPU9SSO2rxni15pNsFixbRXpD6tlpzpDpQ/BLs/KmF+WqyPbTb3UNw/g6UmaZXHcrPkfK2C2/+ijMTg268oL9U0fO0AecnFx1cWG5kLweB7+y9ZSEVj0ZOwUYVpfuQEMR4WhohNcG06kQKmbdIetvxJsjS4wdtahgm1v7ACauKV5HvLiivnArc+W2K0b07kGmh1RjU1ka5sKJQSQg4AsZMNFI2Jf9UnRMjouvmFcH+JHdXtTKkttsPQM3qM3ysG11dfSSK9aD3/fl2uIxHpcRl+p9XE4Q2kZ0ZwY2xCq+tnwGJNYHKjVAiT6G36GdsUnFd0pwYDAn+mDFZ3ip0ixKcQLjCtZcP8DVF0itn3mUij7hsABuXxEk8E1XzhnL6K8ToXgUmXG9TJbVoZ08rY7g1U8zGBCsqShYx5aHpViR7dgnnADcBu5CeD/Ri0oba2/JCWfVy3FMsW8Ih5QWoo6AVa6IN4WaySJtVHtv4B87stNmKkawjzSGaTiz1t6WGMocjc1BUMPyQn7wDFkNb64Se3AHhaE785UlCn7tvPblHx5pCoIrk6TMUf2mIudtKDed2Pfk6wN30qKJw+dGtBm7MIpLoJl7BWPQquI/0Yo2qK/OqY= 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)(4636009)(376002)(136003)(346002)(39860400002)(396003)(230922051799003)(451199024)(186009)(82310400011)(1800799012)(64100799003)(36840700001)(46966006)(40470700004)(47076005)(83380400001)(7696005)(6666004)(40480700001)(40460700003)(36860700001)(356005)(5660300002)(336012)(2616005)(426003)(55016003)(478600001)(1076003)(107886003)(6286002)(26005)(82740400003)(4326008)(8676002)(8936002)(7636003)(4744005)(36756003)(41300700001)(2906002)(6916009)(70206006)(86362001)(316002)(70586007)(54906003); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Jan 2024 13:44:31.8881 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 551c9beb-edde-4890-b9a7-08dc20d06c28 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: CO1PEPF000042AA.namprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA1PR12MB7412 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_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. 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