From patchwork Wed Jul 7 12:03:00 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Baum X-Patchwork-Id: 95494 Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 6BC32A0C49; Wed, 7 Jul 2021 14:03:43 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 40E4C414F3; Wed, 7 Jul 2021 14:03:39 +0200 (CEST) Received: from NAM11-BN8-obe.outbound.protection.outlook.com (mail-bn8nam11on2087.outbound.protection.outlook.com [40.107.236.87]) by mails.dpdk.org (Postfix) with ESMTP id 5B70341391 for ; Wed, 7 Jul 2021 14:03:37 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ofNXBzbUPsswbSSsZvu0P/djAels6dMxIb4b4JaJIa6SFSm554gFhf26GMdvZ6/nfxvcNoDPkB+31a025RiEoqo1xeWgZMcXGLVTo9rOYgWMfrCpKF+2je/1n+iT9fuP4AwSPPcU+aXkMJX38oVbWyse0Z5t7nOKPl8q5Met/qJcn5X06/3exVVcKQ9RbGMDGRiqd7eGuC1Rtc/PNxWPCYOK35+5z7h8m/QtsNQOYjoSeQxopb2xWKOBuwznfut+dZ0YyYBpR+Ros8fuXbMtl+ypOEnLKhy6swXkGQZXm0bZQKgTvSeKLSa+6IPWsTB25iMHEIL/RBoLqUCQscy7pQ== 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-SenderADCheck; bh=ulLvFnduHE9H0buP+XbdXU2o3rZvCFLYmZxsRQsFP98=; b=QT111OsHF33GVC9eJeZYcLZ0XId+XQXZqz882rSoP4t53lgtJKVGS+ObcKh7312LKNepirCpIyznpqRI0Xz+HY7U4rVRM9EYND3BwW0TFHKg2x/xET/gi5eGCFcj9Us5tJeP+4hZUyPdIXsiwKR1c33XTZwyZNE5+uJ7zgwOeSCeNXDt3dQ3uRiGm4ESfXIYVlXhn94Y9mfjexrqttq9YZSs5wWSqJc0ksnMkSI2i/CSJrLioQCWwHUlq4FKVHuIfk/8RoQZGQASj/961ERGe4b2izw6cnC58yVQ95X2E5kBmbujzkdqZXXt0nB8i6pjWe3rv8iH9whWWmqeeT1Rcw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.112.34) smtp.rcpttodomain=dpdk.org smtp.mailfrom=nvidia.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none 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=ulLvFnduHE9H0buP+XbdXU2o3rZvCFLYmZxsRQsFP98=; b=lFvsJsjdmmCH61a+QYK4HTY03RV5zVdi7f1mVg4vEOyvEg/CNVR40fK9kuHQzuctPeN2TlSprnA7BCmW2B9RU+r1cYd+iIE+QCmUPwzNexqS16CqCUVxIBECY5Zxfg04V0tDhZxoYaPO2JhvHAbc0aYYFhiujV3a96W85n0W3f3AzILVhSrXabs+EmLADJPHfe+inSm3NnvtRf57SsWvDhFjj7Yfub/bbxpJD84ljmBk+xzpriYbZODfIsKdYtZFVJQM5ddO36UqHrFfcRewfAf3IQGEsJGicqhDbZIzZFUtTT5ZBs8csqJl62CIyDhhc2yM9oCYOiBGb2yuhWmbvg== Received: from BN0PR03CA0032.namprd03.prod.outlook.com (2603:10b6:408:e7::7) by DM5PR1201MB0009.namprd12.prod.outlook.com (2603:10b6:3:de::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4287.23; Wed, 7 Jul 2021 12:03:36 +0000 Received: from BN8NAM11FT015.eop-nam11.prod.protection.outlook.com (2603:10b6:408:e7:cafe::84) by BN0PR03CA0032.outlook.office365.com (2603:10b6:408:e7::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4308.21 via Frontend Transport; Wed, 7 Jul 2021 12:03:36 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.112.34) smtp.mailfrom=nvidia.com; dpdk.org; dkim=none (message not signed) header.d=none;dpdk.org; dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.112.34 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.112.34; helo=mail.nvidia.com; Received: from mail.nvidia.com (216.228.112.34) by BN8NAM11FT015.mail.protection.outlook.com (10.13.176.90) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.4308.20 via Frontend Transport; Wed, 7 Jul 2021 12:03:35 +0000 Received: from nvidia.com (172.20.187.6) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Wed, 7 Jul 2021 12:03:33 +0000 From: Michael Baum To: CC: Matan Azrad , Raslan Darawsheh , Viacheslav Ovsiienko Date: Wed, 7 Jul 2021 15:03:00 +0300 Message-ID: <20210707120303.2490006-1-michaelba@nvidia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210705052730.2283962-1-michaelba@nvidia.com> References: <20210705052730.2283962-1-michaelba@nvidia.com> MIME-Version: 1.0 X-Originating-IP: [172.20.187.6] X-ClientProxiedBy: HQMAIL107.nvidia.com (172.20.187.13) To HQMAIL107.nvidia.com (172.20.187.13) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 13a68d13-4e8f-48e1-8a9e-08d9413f3fcf X-MS-TrafficTypeDiagnostic: DM5PR1201MB0009: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:2657; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: fXTr3lzizA/zF2V5GPl6anflRW0Xi4jeol4IfpO0Jdsu6vr/fs1GKkjQHn5aE6WciZvbuQnCpCuBNeY9xf9n0wjP4MLjF2qK6h5Z+ogYdMMtCTVfbI09x31erpYrEJK0J46MbfjekOHt5dnBATJOXtzz2zUY9XpYWapmdS747P0abwUVZNPGivgAaZOcw6Pb/LF6JxbVgOBII9Y2jczqQ9hT3ifCDNBCD++Ok1Sm3/xQssaGLjLMLFZOC/w1Z82Tnm1phD5kri8ESwpGSff4R+EYkfkYD40H/MaKig6lny1W0Jzf9cUOgvbIzP5gKcw5hGwhPDadTeLcwlBvdBqZMfR1/lZje7KvFR/S897NjE+ecN7OfbajRSI9EYj1tVimXtZtTiz+4Y/Vp9CYxXOSTYw8NvdGtjwadbdXpzeyvOJB402l0bO4gpA7tMu0L/uTXgq6BQkOM0+yofce3ufV5lRjdr2C51eqjkZsQuYsLbqP/l9qbjW73TrdZYkyaejdesoDpmxGSafvdnEmdHOzIVC5keNxbqTASSRDxuigCZjQdbAgNWEWJ9IYNHPoafNQW8p3r3K+gnh31IEU6Yqyt+wSyOb1EEHqLN9OkggQT/NfnB39NOel8dztFNTdxqmgql2TXd6TMx6+IzBdlJb70icO0SuWqLIMF6sVZaDFgUi/Yr8C7D1/TGoo6GT67C+mkLsrn/7qd1o7zIHefzgBoQ== X-Forefront-Antispam-Report: CIP:216.228.112.34; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:schybrid03.nvidia.com; CAT:NONE; SFS:(4636009)(39860400002)(396003)(376002)(346002)(136003)(46966006)(36840700001)(2906002)(36756003)(478600001)(2616005)(55016002)(356005)(4744005)(83380400001)(70206006)(426003)(7636003)(47076005)(8936002)(8676002)(70586007)(86362001)(26005)(7696005)(82740400003)(16526019)(336012)(186003)(316002)(36860700001)(107886003)(4326008)(36906005)(54906003)(6666004)(6916009)(5660300002)(82310400003)(1076003)(6286002); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Jul 2021 12:03:35.7118 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 13a68d13-4e8f-48e1-8a9e-08d9413f3fcf X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[216.228.112.34]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: BN8NAM11FT015.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR1201MB0009 Subject: [dpdk-dev] [PATCH_v3 0/3] regex/mlx5: some independent fixes 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 Sender: "dev" Some independent fixes in MLX5 RegEx driver. v1: Initial fixes. v2: Initialize pointer of global generation number. Add global generation number checking in indirect mkey creation. v3: Rebase. Michael Baum (3): regex/mlx5: fix memory region unregistration regex/mlx5: fix leak in PCI remove function regex/mlx5: fix redundancy in PCI remove function drivers/regex/mlx5/mlx5_regex.c | 59 +++++++++++++++++++++++- drivers/regex/mlx5/mlx5_regex.h | 2 + drivers/regex/mlx5/mlx5_regex_control.c | 2 + drivers/regex/mlx5/mlx5_regex_fastpath.c | 50 +++++++++++++++----- 4 files changed, 99 insertions(+), 14 deletions(-)