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 06A6F43787; Mon, 25 Dec 2023 11:46:02 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5D1CC402E7; Mon, 25 Dec 2023 11:45:59 +0100 (CET) Received: from NAM02-DM3-obe.outbound.protection.outlook.com (mail-dm3nam02on2076.outbound.protection.outlook.com [40.107.95.76]) by mails.dpdk.org (Postfix) with ESMTP id CF1B9402E7 for ; Mon, 25 Dec 2023 11:45:57 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=I9ixc455DvvfaYbSr5dNtVqkDQm9TUaGpIgFBws7QskwCB5l+nScvQp8ShRp6HyzZHydRSS7LWLY29o0wamDHUhrc20hJyIqQsM0mmzcKoN2hw+j8viokMppDkULqdn3n7ktPpftkG+FAunKC3DN0aKnDAt8hrRsMgG+7KwS9rZWKCVijk5UaKcgJkn1udTNr8mm0uKY7M21cyRcTdN1TjKKjA29WgHiJR8vomB2pkmcWlOKRqIIp0/UgxpsdDb+v6XPYW+OuRJ3HPj1Gdnjd4ZM+Hg4b8vvDC0dAprrbSnsbS4njm1L+Lr0nkJgu6o43twb2GbB6mFlfmhBU94FIQ== 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=Yq3LZ2G4SpLAeaq3GgCd+kLS5Io8vhyRfP0zCG+fgj4=; b=hc9k+g051kIc4HFgpOPQX43qa+K64bb9mKGCfkllUgIB4QdK08Qmj+IrBM7HcWX/jCg1geBDb+WvEAZDVuRMSDm7R0c7shvvRtbZsyjTczkmvl07fF26CggX//Rda38Nby+VsbChrimZkrxKjl9/rE4PEWRKYu8/vjLeWkuS6Gmdacem/VPXpQSG1U4UHjqy51Fb1qVpF7JZXl550VnFTC5FgkHxhZdGTJhEd1AaVgR38QsGJPA1h9ov9Dc1kf8hoYtGqj40XiKTEW4NAzhHKc+qVOmXVFgDfHYagdERlLjFWfwyVTC2tPHs2sukF3AJJBvhXkwoeyRK6zFO/FssZw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.118.233) 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=Yq3LZ2G4SpLAeaq3GgCd+kLS5Io8vhyRfP0zCG+fgj4=; b=HGLJQaIk72YUXjuD3xO42GCtxMSHTh4urNXCmCzVn8q4E+KUI0TS58X0znrT0G0udHyChcRFQKetH2Oiid2QoQFaYYZcKn2NSxWYXuDEVnC8hv4vDI0ESLa/ICKPNBg3ROEZPHcUh0vp2y61VpyDBTqskIX7lx9c5lUo4CewOSlVJAw/MdWO9yF4QuW0rDQh5x9eA2oi+wVn1YnkLyKPysxXrCGVnbWJ1H6FOn6mdEItayQQm5rZgOv1KDtDcuJAjMLrEZJc+/FsDVh54PRq2yyikT0PEquB5YJGJrWUP3wcXO5oljHv+aYfEZX1LLoPTD5zO7Q1ipTmgyKFnSfk8Q== Received: from PH7PR13CA0019.namprd13.prod.outlook.com (2603:10b6:510:174::16) by MW4PR12MB6900.namprd12.prod.outlook.com (2603:10b6:303:20e::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7113.26; Mon, 25 Dec 2023 10:45:55 +0000 Received: from SN1PEPF000252A3.namprd05.prod.outlook.com (2603:10b6:510:174:cafe::b8) by PH7PR13CA0019.outlook.office365.com (2603:10b6:510:174::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7135.16 via Frontend Transport; Mon, 25 Dec 2023 10:45:55 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.118.233) 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.233 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.118.233; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.118.233) by SN1PEPF000252A3.mail.protection.outlook.com (10.167.242.10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7135.14 via Frontend Transport; Mon, 25 Dec 2023 10:45:54 +0000 Received: from drhqmail201.nvidia.com (10.126.190.180) by mail.nvidia.com (10.127.129.6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.41; Mon, 25 Dec 2023 02:45:43 -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, 25 Dec 2023 02:45:42 -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, 25 Dec 2023 02:45:40 -0800 From: Michael Baum To: CC: Matan Azrad , Dariusz Sosnowski , Raslan Darawsheh , Viacheslav Ovsiienko , Ori Kam , Suanming Mou Subject: [PATCH v1 0/2] net/mlx5: add random compare support Date: Mon, 25 Dec 2023 12:45:32 +0200 Message-ID: <20231225104534.2420737-1-michaelba@nvidia.com> X-Mailer: git-send-email 2.25.1 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: SN1PEPF000252A3:EE_|MW4PR12MB6900:EE_ X-MS-Office365-Filtering-Correlation-Id: d492e874-29df-416c-22f3-08dc0536abea X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: KFMeYYuULMjpukkUooXkxOnLQwqezPtBJB4LuSLYD4ZWOIigXZAUVqc7tbBpJkVrza1eC2sAT56UIlmm+aA/ixGbgJtuB6nnSi2f/8YZUuCXwoGF58dwYE42AHNVbRjlABuNMijK40qhG7dQM+t0QLyvp7BKWT6Le+DwMLYO5TzHKVTXcTl0iDgeuj9dvt+L56ew0sgEHbr1xzghkYTzQyUs4ych3FSCeLfIAZkwfERog/LNOgFkEdNpo4zPpgRxn5NZbdsNF9hN3Z3FWKYzXhS+p9j9t4uIkaLTrsodMJP6uEO9QWZoGdfD3Eo5YaaPFy/liR2h/wsDw7yF36+MTrdsEj9FGXnzhmtRuJ2WdNqAI7dVXysNynvAtf5gPTI5eYbDTYuo7tZjvGL5lFENS3bejXcxuqQaORyLnjCo1NBRAqMvAuUI26o7YvjPtMhRqzT6Bjdon9zBDOP/yRL0YefZEfv4wrWZcjxYTPYVg4RuZyrX1MvcRmL2qRXVkzF+kyA/lAnMdEZvWGb931CXZBeOvafVGqnzzUg4Kuf9KH9w1MOlr3kK/55+vLe87Xp2Srs3NlU+Egc/C638RiS477lieKeOWnsjya7ukFm6WeBuwsd9AG1WE0HknRkVO0MfBahZrvVTGNG1iimczcknHZUajNg3J6oxeka+DuCvtt0Q7JRPw6gKb8iqViK3jVoFDGosKOKtUa/ZAvooLYr2lKQmo0Z23Jle45HhNfsZMKM= X-Forefront-Antispam-Report: CIP:216.228.118.233; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:dc7edge2.nvidia.com; CAT:NONE; SFS:(13230031)(4636009)(39860400002)(346002)(136003)(376002)(396003)(230922051799003)(1800799012)(451199024)(64100799003)(186009)(82310400011)(46966006)(36840700001)(40470700004)(86362001)(7696005)(2906002)(6666004)(478600001)(83380400001)(47076005)(36860700001)(41300700001)(6286002)(356005)(7636003)(26005)(1076003)(82740400003)(426003)(336012)(107886003)(2616005)(4326008)(54906003)(316002)(55016003)(40480700001)(36756003)(6916009)(70586007)(70206006)(40460700003)(8936002)(4744005)(8676002)(5660300002); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Dec 2023 10:45:54.9138 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: d492e874-29df-416c-22f3-08dc0536abea 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.233]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: SN1PEPF000252A3.namprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW4PR12MB6900 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-30553 ("ethdev: add random item support") Depends-on: series-30606 ("ethdev: add RTE_FLOW_ITEM_TYPE_COMPARE") Depends-on: series-30665 ("net/mlx5: add random item support") 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 | 220 +++++++++++++++++++++++++- 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, 387 insertions(+), 27 deletions(-) -- 2.25.1