Received: by 2002:a05:6a10:c7c6:0:0:0:0 with SMTP id h6csp2648486pxy; Tue, 3 Aug 2021 11:23:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxScPvNoLiTh4UvdRJ8Ub3VTeoEJGBWQyvpvRV31uh/dYeyxiBk5hL/CjcljXxqZObciFPC X-Received: by 2002:a05:6e02:1c23:: with SMTP id m3mr1343287ilh.98.1628015021301; Tue, 03 Aug 2021 11:23:41 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1628015021; cv=pass; d=google.com; s=arc-20160816; b=cijtdJ8PHcNnjPDdUe0t2t4Ynz5pakgTEXAqvwRkGmjB4cGcE9at0Reomq7KjuR4rI Rnq/JYQFk1Dr2X26WbAABnc9Q9iZ0uOiXx5GRWr2M/4VPJsMD1kZFpqDDVLaADHk8Ua2 Jsk8sy3H886ujPK176uKeJ91qrPnp70QDJ8MGo4qieas5fv5MQ5dCsBZuDD9kK+3Wxx0 x7yjqchWRP1rBKGqzDNiApBKxZLQACIUEW37VeI785lIjOtYjLSnhR9D5ADn/tpa7/E+ /udrQOWI1sWVyX3GMSqvolOV2E1Hi4jeFvd6U1iwD0CTD7cMxDLdsmfRKptuxTO2P7mn a2Ig== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:in-reply-to:content-disposition :references:message-id:subject:cc:to:from:date:dkim-signature; bh=GJJSn55LDNjRHtwIkso2Lj7QRV2yXQ7uOfHV26RkC+w=; b=hQxA7KTre5HCcjfxA0yZGPv1EsZvvSOkjy5ClxVVXnChXCLoigBN4IaNv7FDnT1kqF VPAYOrj6BMa5t6wP+4N1ewBrUNASEwBofuzV1Fv1y02MzwGDlhmnvtzX9X+i3ZqfxXBA ymh5Nbc+ZDWxQwPtcrwVwRF9o7kAjwDqjGyMLBzLKM/D5mufhwxcq3MWTOkBZJEaz+Rs AGBmY0FJOzPkqvC36LVSwQ5L9B3wlgfH1MT8vAYM6QXAqKK5RXmhAskTZM0i2tTX2yBI kHwQNxqlkSxXGVZoK51RbKEFfqrN1hJBidCLt9KLaxbOaCmoOlEz4G7PPxItVjtnJ9Ri APNg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@Nvidia.com header.s=selector2 header.b=AgsMPoaB; arc=pass (i=1 spf=pass spfdomain=nvidia.com dkim=pass dkdomain=nvidia.com dmarc=pass fromdomain=nvidia.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=nvidia.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l17si15223949ilk.49.2021.08.03.11.23.29; Tue, 03 Aug 2021 11:23:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@Nvidia.com header.s=selector2 header.b=AgsMPoaB; arc=pass (i=1 spf=pass spfdomain=nvidia.com dkim=pass dkdomain=nvidia.com dmarc=pass fromdomain=nvidia.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=nvidia.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238801AbhHCSN1 (ORCPT + 99 others); Tue, 3 Aug 2021 14:13:27 -0400 Received: from mail-bn7nam10on2064.outbound.protection.outlook.com ([40.107.92.64]:41922 "EHLO NAM10-BN7-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S238787AbhHCSN0 (ORCPT ); Tue, 3 Aug 2021 14:13:26 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ZCeZVWFjoj84ZbFEnOP1nD6rBE/PwpOdvsuvphHSbXo1YPiW1pxzln9hG3tG1shxC+djkcKBKHoH1+YUz/cAKfp+Q8d/U5PVpmnmyYSYlFemTcIDcScEX7lAgi7X9Npe50IhOR5WlfTfUNvmX5lyZqUJYqqrnLnXZZWZ8SrfX9iGfNXUArKhnE4qjWJBKdIYXzNUZDa+LJ3FzVB8TWmxAl8sl91LLi4FBJqAt/R4ow/LxUKZ//inY7PFY7UiSXk181S3WmTswH7QmeMh3JxUx+VCEa6zTOkOZmXtY1euLNe1pEgJbIKO9sqd7FOIRwmU9hPKQ0hGxk4SCYaUzE+TIQ== 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=GJJSn55LDNjRHtwIkso2Lj7QRV2yXQ7uOfHV26RkC+w=; b=oSE1PzUwpV/vBE/hwr2kC2zXynklrukijtDtciP8FdGrdinMEACmVkbyldeWNv99ZnTcltQFoQiaDQQzYiZKZF8/Pm9ZrWwKeFDRROYmGOSnbnWvW0qK4gKaHS5nLc++TTs1cEXXV8Nt7JAKuUacq8flA6ULCQnwvpD19esws7o2hhBxL6mRJHY4z+VLyYRYmaif1yh0FyvAJKLWkquWgA7zUUg03a7fJy21mqa6KiLbAeqRn3NRr07OVBcsJrXnT2Z2LJVr/hybqbSAX/uLZwlCJmno+74rSiaclpNKjcpxUJdTsx+SUKTExMcV0zg2A2Fzn8HZmu2sjaOxhyFtSw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nvidia.com; dmarc=pass action=none header.from=nvidia.com; dkim=pass header.d=nvidia.com; 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=GJJSn55LDNjRHtwIkso2Lj7QRV2yXQ7uOfHV26RkC+w=; b=AgsMPoaBcubVBU6wm583U0zebqA78CJNilYZ0FLJb40Enw8XGWlT308yUX8ButpuPRDuvjvAUpzK58pXIKIQiQjzzWFyS5QYypKLJ8JBngIGzL683cujKe/ZEqHd+xT1asJh3UiE8CDTqXwrw3CktoA2GI/i3yX8f/It48qw/KoRcR+Dd1RpVw9Nf2CsfSesJ4eYyRUMl1CNK3o9021CspfEtoxyAL5OZK71bxme8Yb1RUaIHWOvlk1qWy371nYb9gQ5T9ieWsDYrNSLdvqCNEohZMVwCJwabHfEhEKFyJfgea2PDMYUwZSt9OqntSK8Dw0gcE80dJJG/sUxyEOuzA== Authentication-Results: nvidia.com; dkim=none (message not signed) header.d=none;nvidia.com; dmarc=none action=none header.from=nvidia.com; Received: from BL0PR12MB5506.namprd12.prod.outlook.com (2603:10b6:208:1cb::22) by BL1PR12MB5208.namprd12.prod.outlook.com (2603:10b6:208:311::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4373.21; Tue, 3 Aug 2021 18:13:14 +0000 Received: from BL0PR12MB5506.namprd12.prod.outlook.com ([fe80::d017:af2f:7049:5482]) by BL0PR12MB5506.namprd12.prod.outlook.com ([fe80::d017:af2f:7049:5482%5]) with mapi id 15.20.4373.026; Tue, 3 Aug 2021 18:13:14 +0000 Date: Tue, 3 Aug 2021 15:13:12 -0300 From: Jason Gunthorpe To: Leon Romanovsky Cc: Doug Ledford , linux-kernel@vger.kernel.org, linux-rdma@vger.kernel.org, Mark Zhang , Christoph Hellwig Subject: Re: [PATCH rdma-next v1 0/7] Separate user/kernel QP creation logic Message-ID: <20210803181312.GD1721383@nvidia.com> References: Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-ClientProxiedBy: BL1PR13CA0130.namprd13.prod.outlook.com (2603:10b6:208:2bb::15) To BL0PR12MB5506.namprd12.prod.outlook.com (2603:10b6:208:1cb::22) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from mlx.ziepe.ca (142.162.113.129) by BL1PR13CA0130.namprd13.prod.outlook.com (2603:10b6:208:2bb::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4394.6 via Frontend Transport; Tue, 3 Aug 2021 18:13:13 +0000 Received: from jgg by mlx with local (Exim 4.94) (envelope-from ) id 1mAyue-00CEb8-PZ; Tue, 03 Aug 2021 15:13:12 -0300 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: acdb8b4e-c6a8-47bd-299c-08d956aa5c1c X-MS-TrafficTypeDiagnostic: BL1PR12MB5208: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:9508; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: K5Ec6xRkjbMWIR/cCcjP+i8Bj6YJem2Dbxx7sTL0y3AqLI0KbuVwLLJBHTxdNjhQ85/EQ7/P5YIDQIZOAyJjwGm8QLvEp8QWgPSjqroEz2la0waurelpl5OfAYQ6BCjwBlBv1ekYMnIlXcmO7XeBWIp+pjXiGJDwjaQIetiTtAP8KEJURqzpw/p3K6Nelt6KK5jdg2bMok1i96TgBArAZNGS7koHzProMfXCE92DeOqrnkobGLRXNhbv0dhUNwRHv6PtsLqKT1266heV+vgIaHQheUAfsapF/QAM3ugfc/H90Gq8E+XMtOJKXIlT4cMNlCTJJyP2EoI/gqsuM2qcn4S0D5QVzQmsYQ2FpO9GhjfFi0M692XPJfRPZEMuWkmobQhQGC0kPCNGaRatgsOEH2VxOk1jTJ4WaPSbsTnzlRZ70A7Xwxf8eQ/XmSN5OXWwhi6ThEDv9amdDTufouVlj4CoPCB4DrC4VRtpUD8zlB/ZCVvvN05hEQsGBKfW4ZT0lFhbuxbCe0hYgK4jIJ1QCfWEfq2ga21ml4XhBwbmBeLt9Qp09RQ51ywq9T7MHBUuJRvWk8uWonJVMGx12MTry3KQZJ7gHlD0az/z9NBdTcWyVcFyDUBRzVgU1xKF4LfPOn7nNWPtPfbG4Ksj5Nc+cCqX/YWKOSs6BjHo8TUuMb9D6aKl6fBgE/mIWd9Q5wuXBpgUptjLgdrfIQRolQpNmMlDfQ6oaxNLvmS+gzPl/Fo= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BL0PR12MB5506.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(346002)(376002)(366004)(396003)(39860400002)(136003)(86362001)(186003)(66946007)(8936002)(1076003)(8676002)(6636002)(66556008)(66476007)(26005)(36756003)(83380400001)(2906002)(426003)(2616005)(316002)(6862004)(966005)(38100700002)(9746002)(9786002)(5660300002)(33656002)(54906003)(478600001)(37006003)(4326008);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?BxeoRYtGhxn9vLWm4SYbJzthdMBUVs8lqiop2S17j1Qln5VnFQTGlQQTBJIV?= =?us-ascii?Q?MnBrWrFjcem9NhKWNsLDlE8EO2UYNFUh13MA0UPspdnOhS3lf2m1pCi02/4u?= =?us-ascii?Q?iSk80Dx7UHIf+Bx1UzvIUILTgsQMGH9TTUS+cf5qil1m9pbKHaxkn2EpDtxE?= =?us-ascii?Q?C3cZu5J3svfxxUK/zKlaM5JxF1ozQBw6D03/dIBZt0IEBNs9kywisX9FA4Vy?= =?us-ascii?Q?g4alOSi+NE1d82m1l5Cgtwe0xA3WcHOKrWvNKX8sdBQD0plVBVXxYz+nXlJO?= =?us-ascii?Q?eiAnPPX79yiUx612aSfCssELsjouTROWtkE60gGtGZ4/YLuVcA9VbmG8OVAR?= =?us-ascii?Q?PPVrDMPLEBgbxBARRs4FGU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zFq5wnWe?= =?us-ascii?Q?/deDYVDb/Di7+IqtXNgaAXd2KtDnqXmMkueXuWIHQgiPk++dZ92cOi7kQKtT?= =?us-ascii?Q?rfsMLi9KZfAvWB11CAhIaPgh?= X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-Network-Message-Id: acdb8b4e-c6a8-47bd-299c-08d956aa5c1c X-MS-Exchange-CrossTenant-AuthSource: BL0PR12MB5506.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Aug 2021 18:13:14.0887 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: MF55HeuTEdfLdNPvvAvcpNY2y7DN/DLPk5sf8cnB4hNByHn4VCc6hS6ydY7Qk+6Y X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL1PR12MB5208 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Aug 03, 2021 at 09:10:56PM +0300, Leon Romanovsky wrote: > On Wed, Jul 21, 2021 at 12:07:03PM +0300, Leon Romanovsky wrote: > > From: Leon Romanovsky > > > > Changelog: > > iv1: > > * Fixed typo: incline -> inline/ > > * Dropped ib_create_qp_uverbs() wrapper in favour of direct call. > > * Moved kernel-doc to the actual ib_create_qp() function that users will use. > > v0: https://lore.kernel.org/lkml/cover.1626846795.git.leonro@nvidia.com > > > > Hi, > > > > The "QP allocation" series shows clearly how convoluted the create QP > > flow and especially XRC_TGT flow, where it calls to kernel verb just > > to pass some parameters as NULL to the user create QP verb. > > > > This series is a small step to make clean XRC_TGT flow by providing > > more clean user/kernel create QP verb separation. > > > > It is based on the "QP allocation" series. > > > > Thanks > > > > Leon Romanovsky (7): > > RDMA/mlx5: Delete not-available udata check > > RDMA/core: Delete duplicated and unreachable code > > RDMA/core: Remove protection from wrong in-kernel API usage > > RDMA/core: Reorganize create QP low-level functions > > RDMA/core: Configure selinux QP during creation > > RDMA/core: Properly increment and decrement QP usecnts > > RDMA/core: Create clean QP creations interface for uverbs > > > > drivers/infiniband/core/core_priv.h | 59 +---- > > drivers/infiniband/core/uverbs_cmd.c | 31 +-- > > drivers/infiniband/core/uverbs_std_types_qp.c | 29 +-- > > drivers/infiniband/core/verbs.c | 208 +++++++++++------- > > drivers/infiniband/hw/mlx5/qp.c | 3 - > > include/rdma/ib_verbs.h | 16 +- > > 6 files changed, 157 insertions(+), 189 deletions(-) > > Jason, > > Can we progress with this series too? It doesn't apply, can you resend it quickly? Jason