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 49FCD43B27; Wed, 14 Feb 2024 08:30:47 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 37E8542F33; Wed, 14 Feb 2024 08:30:47 +0100 (CET) Received: from NAM10-DM6-obe.outbound.protection.outlook.com (mail-dm6nam10on2063.outbound.protection.outlook.com [40.107.93.63]) by mails.dpdk.org (Postfix) with ESMTP id 1756642F17 for ; Wed, 14 Feb 2024 08:30:46 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=mGXjmWzfssud8UI2RaOOst8qcaCDLD7wt50EfOxNBQUrqw8d0xYfX3kHsz+Sj4ctXqhPUwlyQ4EwxtK7ewGQ+wI70qX5JhbN4zS9/SZ6soD/NO9IPrXxCa/JKHjd0THMdqJAgWAM7iSdre/Ned4mckET4MZrIl2vMmX4R0cMlhqoM0Xpq2vJeMWP6OGK1uytJYPSQFqWzlCxqZ7TqvNHKRj4S5JR1CRfy2SNMCnfwM5BPjJFyJ5kPLuW3viaUJwVJJtgo5ar6nHjuDgi8Gg0O83zNNbgPORbqEzOJDeKuIEfy2cAqZwPGw7JWnDhvxDFylqwu5we01v9UAGtJ+GSJA== 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=JkF+Z/kSIclZ96TkPZhiGVdmWgi6LUuzDeIiB1f5N+8=; b=kCkKI1KOx9mpP3CNwCqDGoD9D6j+gyrbFlkIjZ5XmkCfrMOfgK1CLaf1Gpn8q7DCnmaX78amUnaFZXHGXBiTgN9ELCJavOuknk9p18eZ0RZhRJcnFGNFJfaV/QmNBKhDR0aEaCiSVVA30gkuFKzvQiP47Z2+3BXUNIEAe+XSj1FrfJqadmJ8Ww3WkPxXpcZOTDZga1AvEI+5SRLdfjptjJu4/ZAD36Je6NG7W2PmAOyW+v5iJZc+UjUUu/CatKHUjbIAwVcj1FRg23MRqrrEaBU52immAg/pAL7/SOcCQj6m770ZyibQG96niQFsszATOls88jKrlajOr/WnsqoJFQ== 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=JkF+Z/kSIclZ96TkPZhiGVdmWgi6LUuzDeIiB1f5N+8=; b=i8nInrfUB7RIGNJhd/0OMby8BWCI7KCxfSylPX6Ordr7+LPNmrTPhpMbVXHao3+C1JPGe6jPmFZq166ahylgf8rdNjW3k4h1bc8lRs+O21qrt+vQgReCib+dDA1EACn7DdzUffmHl7RVWmSXBPNPCs+7Qfc5laNn5w/8A5OfEwTfRk8p89mXHSheKdjVKz22ROTWGTvde70JmxpRZ6+zTFrfcNFQmJ6KJW3cPh0e3Yatc3mOiGz1r4+eTIkvz5f963zJkf0+M0I65/LhNCQ9b5VQ/s0sripcmhRAI8p2bjL2lMUhcTn6F6e4UriOR92PSHHe+UVll3m9GrNqkwIlgw== Received: from DM6PR03CA0089.namprd03.prod.outlook.com (2603:10b6:5:333::22) by PH7PR12MB5999.namprd12.prod.outlook.com (2603:10b6:510:1db::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7292.26; Wed, 14 Feb 2024 07:30:43 +0000 Received: from DS2PEPF00003440.namprd02.prod.outlook.com (2603:10b6:5:333:cafe::8d) by DM6PR03CA0089.outlook.office365.com (2603:10b6:5:333::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7270.40 via Frontend Transport; Wed, 14 Feb 2024 07:30:43 +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 DS2PEPF00003440.mail.protection.outlook.com (10.167.18.43) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7292.25 via Frontend Transport; Wed, 14 Feb 2024 07:30:43 +0000 Received: from rnnvmail205.nvidia.com (10.129.68.10) 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; Tue, 13 Feb 2024 23:30:27 -0800 Received: from rnnvmail201.nvidia.com (10.129.68.8) by rnnvmail205.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; Tue, 13 Feb 2024 23:30:27 -0800 Received: from nvidia.com (10.127.8.13) by mail.nvidia.com (10.129.68.8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1258.12 via Frontend Transport; Tue, 13 Feb 2024 23:30:25 -0800 From: Michael Baum To: CC: Matan Azrad , Dariusz Sosnowski , Raslan Darawsheh , Viacheslav Ovsiienko , Ori Kam , Suanming Mou Subject: [PATCH v5 0/3] net/mlx5: add compare item support Date: Wed, 14 Feb 2024 09:30:12 +0200 Message-ID: <20240214073015.2060103-1-michaelba@nvidia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240207161414.1583125-1-michaelba@nvidia.com> References: <20240207161414.1583125-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: DS2PEPF00003440:EE_|PH7PR12MB5999:EE_ X-MS-Office365-Filtering-Correlation-Id: e27c3a45-660f-4917-646f-08dc2d2eda67 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: HKiDoblZiucT82YIcW97+fsJOO5/g8bC40Ivfg082n90RrglJCAcnXo1uoC+QDdXz5xhWnb3tNcWarq1Djg8PHQDzaaIxcf4AQZccBy25f50qt2cl2px01xYJZTEpKTtYD1ECIlVRKZBJHEVWlJXNDhZpJE/VCmvSo4hswRY9gBcOHSrRpx+TgZDr3JT4u2m/CD+e3OOpoPC4n2MsG8lr8w2aZg0/EY/Fz8N8sFWYJ4zjeJKWrvDQdxNJBznUMXFbKQhta/XinD7mgKigGQxoFSNEP25x0FFkPnuIjsUwZrCYpUYdkmuqoCAamztgUu68OmiorIjVPdvnX870I8Tsa4Fw+uM5GMvyS8kJgSONftA4RExlBmPFJUtjn64kp/Sp7/eM6DEl5ME0hoK7+BMloxq/k3crH/Vm7N9pQEGyazUnwotJVNzkFuai2wAzYHDsmQTb2oZiINc/R0D85olGGl9jf1oHFguoSA7lFqurcGS6fJGJFxNyL1i8iUUZt/lXUhr7ZgiHzhHMyjb4TWB7J2cRaI07ENyohhGwOfS4G3ZITqxcZpRE8jirCU3gKKsRMmQQaDxafHWuInl23M3D2ojddt8W4IycmZkrRb1RfA= 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)(396003)(376002)(136003)(39860400002)(346002)(230922051799003)(82310400011)(64100799003)(186009)(451199024)(1800799012)(40470700004)(36840700001)(46966006)(2906002)(5660300002)(55016003)(336012)(26005)(107886003)(426003)(2616005)(41300700001)(6286002)(4326008)(6916009)(8676002)(70586007)(83380400001)(70206006)(8936002)(7696005)(1076003)(478600001)(6666004)(316002)(54906003)(82740400003)(7636003)(356005)(36756003)(86362001); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Feb 2024 07:30:43.4316 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: e27c3a45-660f-4917-646f-08dc2d2eda67 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: DS2PEPF00003440.namprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH7PR12MB5999 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. 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 | 48 +++++ drivers/net/mlx5/hws/mlx5dr_matcher.h | 12 +- drivers/net/mlx5/mlx5_flow_hw.c | 73 +++++-- 11 files changed, 439 insertions(+), 29 deletions(-) -- 2.25.1