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 6E7CB43AA0; Wed, 7 Feb 2024 17:14:49 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id F3467402AB; Wed, 7 Feb 2024 17:14:48 +0100 (CET) Received: from NAM12-BN8-obe.outbound.protection.outlook.com (mail-bn8nam12on2075.outbound.protection.outlook.com [40.107.237.75]) by mails.dpdk.org (Postfix) with ESMTP id 5FF9E40295 for ; Wed, 7 Feb 2024 17:14:47 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=bIOsILktkQF4JcNuAHj7tmp6mLPzLoZR+pmNI+LNajVUS3cSkL93YGhwGutPg4PbIcZta9yFnUz1PQJeFQBGw6WR3SFJQ198Vqc8z6L5Q6gpGZ9ub8lyg3mcJcp+yLIPmgXfbzsDIB82PbKzrjgwlCp+p2r9ToADO3IQkTFosBQzo69Cq9zDxLXobmdpGSw627ZiJkwZ7kE9ciUych3JuKsKGrjGiU+Vb1iVDTOza70NAK+mTKQ2EjPoENuBnzDNqzua1/WDPktKBNjGqkQLngwybl4/If2OK5W6HIHBngyJn57zgSt3LL1O29yFQoRRoKlmNLUbf5vqPhYVS3AGLQ== 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=C3GHcSF8fjutGJyMx4rlbp5jtavAPrDVNMLXyPAbjWo=; b=O7PQO3HP7o7f34k8ULihpfJ+cqvJnQRUdt5zj+E3Rhz9EbDMEHsikkI9zxQ586OUlgcvDq1IpeodFwEbZP+SyH8szHRzasRHDpewZHCwq+QqfWr6DUWk/qLyuFOmGgJh5xGSkmjKdy7SCkbIYkQgvgLfR/u8DE1NglIr4WTTpwuAB6japDyr9n6urQ+ybccOG1zO4+ZoB2ZglVs0BnwVUaQiVhrx+ork6E6Af5znjyGOq7UBejrT4GPR7BMCQFhGwf6DVPuIEgi3ogH9JH+1PxtHk4NUzneY7XH+5yTSjSpMjhvGtLUY0aNzCDGEyBldZCiWQlP7EZ3IOajSoMdZpA== 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=C3GHcSF8fjutGJyMx4rlbp5jtavAPrDVNMLXyPAbjWo=; b=h2G3xpq+VXIWmAmdtDoAFgFAxS0KE4BEW0nfCdCdBti+SeJjqnITRAXQX+KGJSqIqydu7NGfQSG+7VtOeVZmrg591NyAtuSnIYNwj5qafF8uxkpjvgJNgsWSOAXBMlQJ3P0yEYYtrw22H0O/lDId4UpBaDg83SIEQWMdFMT0YvQl649Y+x6YeS6Iy6ArcvVuEy9TGFFHPAJMos/a8vzYj7KgZUFbzRo63wmY/TeCn4vYrsfI84t9Ul+ZLdl0VaGlSozUEaTAdsq6KHSaCGkdl8+B8cO6KWz66hBMYN9co1wPDFeQ27rC8PQrr+PF1uqOSHxJZ8yYJyAgKOcW/a46Aw== Received: from DS7PR05CA0046.namprd05.prod.outlook.com (2603:10b6:8:2f::14) by SN7PR12MB6744.namprd12.prod.outlook.com (2603:10b6:806:26c::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7270.14; Wed, 7 Feb 2024 16:14:43 +0000 Received: from DS1PEPF00017098.namprd05.prod.outlook.com (2603:10b6:8:2f:cafe::5c) by DS7PR05CA0046.outlook.office365.com (2603:10b6:8:2f::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7270.17 via Frontend Transport; Wed, 7 Feb 2024 16:14:42 +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 DS1PEPF00017098.mail.protection.outlook.com (10.167.18.102) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7249.19 via Frontend Transport; Wed, 7 Feb 2024 16:14:42 +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; Wed, 7 Feb 2024 08:14:25 -0800 Received: from rnnvmail202.nvidia.com (10.129.68.7) 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; Wed, 7 Feb 2024 08:14:25 -0800 Received: from nvidia.com (10.127.8.13) by mail.nvidia.com (10.129.68.7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1258.12 via Frontend Transport; Wed, 7 Feb 2024 08:14:23 -0800 From: Michael Baum To: CC: Matan Azrad , Dariusz Sosnowski , Raslan Darawsheh , Viacheslav Ovsiienko , Ori Kam , Suanming Mou Subject: [PATCH v4 0/2] net/mlx5: add random compare support Date: Wed, 7 Feb 2024 18:14:12 +0200 Message-ID: <20240207161414.1583125-1-michaelba@nvidia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240129134410.885145-1-michaelba@nvidia.com> References: <20240129134410.885145-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: DS1PEPF00017098:EE_|SN7PR12MB6744:EE_ X-MS-Office365-Filtering-Correlation-Id: 29320557-848d-45d4-cd03-08dc27f7e468 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: OB3BFb8lBC0nYBrC1kWhDLuVIevkq6F0Dp2Cdf0innJvTYWI7xETaZ9PJYnnoGJP1AVPu9/4fNDR7FjBzhDc0AZ8PaLFW2H+aeravLLxdC8fk9liSI8SxhGlOaD155hUmvt+7Nwte/sjtVZT9bZcHKPRloCgchVv2+Z1A184EUUyur5DWhpGQB46km+QZuC1C+JUfGw4ovxRLWtnx8Zm3l8UA0bwr6aCfITL8KpFLS/1k1iXeVnnwAg4GQi44YPzGm3h0OKJuEDYnrptNSwrTUoLLM2OwS7Bkg9WIIZkXnURme9+NoVoNH/UFrT0mu/3LRNwFu0z6xZvIFDKxVe09KXPsY+J/3hBRcGJbPCGim/YqANe/4HU1a8m7SpGFUU0vekSSL905W+B0f4+SD3U6o1Jib6Cyu/aDaaaW8WfmQt6ODIUg2JFfLWAfPWpbCPRrDgbFzoq8pMoHrO5znCItS2LWPuXS7F3hs0IOkzyUg1DplbKrbqPNZyooiuNBdmFJB1gTH6VeVQYSns/GnittHEDLotq9h7Pn/e3dPVVKiZiob+gf7s633na8xa8AWnJAFNdsL2O3oo8hSq0k8LtuEbMV6mxJ16QKEwlaJS2olE4m9AVLinCSOximo1GMSAJIiwA2Gkp2Xz0Udsn88P6eFt1etBL8RMWtf93VRIXBBLgH4V6MeLVtQbLmFfibeOjS+KQTslQKosQMprNWnr2sKDhhjsbOkUFxCIJvB54+gw= 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)(136003)(346002)(39860400002)(396003)(376002)(230922051799003)(64100799003)(82310400011)(186009)(451199024)(1800799012)(40470700004)(36840700001)(46966006)(356005)(86362001)(478600001)(55016003)(41300700001)(47076005)(83380400001)(82740400003)(7636003)(40480700001)(40460700003)(36860700001)(1076003)(2616005)(7696005)(107886003)(316002)(4326008)(426003)(6286002)(6666004)(336012)(2906002)(5660300002)(54906003)(6916009)(8676002)(36756003)(70586007)(70206006)(8936002)(26005); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Feb 2024 16:14:42.0684 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 29320557-848d-45d4-cd03-08dc27f7e468 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: DS1PEPF00017098.namprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN7PR12MB6744 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". 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. Hamdan Igbaria (1): net/mlx5/hws: add support for compare matcher Michael Baum (1): net/mlx5: add support to compare random value doc/guides/nics/mlx5.rst | 9 +- 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 ++++++-- 11 files changed, 417 insertions(+), 29 deletions(-) -- 2.25.1