Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp5233171pxv; Wed, 21 Jul 2021 00:02:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyDoLkP3oy/MyIpFiQ82X1M/KW9XzkxbqlstFrxc1PU4D7fWZ2SGyUNRSyvVTcCxlvl5xDz X-Received: by 2002:a05:6402:100c:: with SMTP id c12mr16902318edu.326.1626850974443; Wed, 21 Jul 2021 00:02:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626850974; cv=none; d=google.com; s=arc-20160816; b=xpjEHN5vifNzZ2FuhcsnsFi7fTJL6bVMe426CaUZgHFCdQ5zC+iIS+6KE+QT2Leixl d2DeFbJ609bMNJk6OWJapBhKxa+bUefaj9M/ft/TVLMaE8cyJGIXxq9Lb9pNPXCX7vFJ 39zislKZ/1P0Y/RtT7xC1UOA3e8jS9kGgE2FL5RvXxcacVej1dJyqswCfQ1ViGMGaOT5 vkox6jJupCun9CiGbR+Lhh76mCVhvi1TApwjAKSWt7UfA6n+8kPJIt0NhAHX0X7KegNs g/6vhFCs2+jJj8zfsL+1vuXVDc6EMKIslsEIp5YJRo++HJDAez7QgiNdGIxrAwYOLCxw wTXQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=QaADqLndUZ117BK9EPCjZkxgI2bY2ZHPjS86XD8WzJk=; b=kJKnkrCm1/EJQ8HrhnqyYmlGd8JMRHs2hxo1qAqf16Hd6xZ6qx25owy/9rDR8INxhO SYyfBTeN8Fs/shx3JgDaJX3mBn6/CPz+qXuJc7gMZ0eYxZ9x3dmEqDHbzXQj4gL8yp74 +jQdLHVFO/CCcLefn7SbC1qtSaDHGz9EBN7iQmQfjclo6s7arz2vUsnoexsTfA5T5gXb 3T6eVaE/DotvQJHTzGwTXq7Ljc75oczmRy2pmbZnwWmxCDA1ynfWZlp8STyLrhqC8lB0 uVNXlp3OKQFcf/Dx+ASyQU2z7228AJyjzweRBhhzhvIePtRlkU6Uj75rZYxxabhS0ICF 9lGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="X6n/g+kW"; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z9si2936307edd.553.2021.07.21.00.02.30; Wed, 21 Jul 2021 00:02:54 -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=@kernel.org header.s=k20201202 header.b="X6n/g+kW"; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233349AbhGUGSd (ORCPT + 99 others); Wed, 21 Jul 2021 02:18:33 -0400 Received: from mail.kernel.org ([198.145.29.99]:52286 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229920AbhGUGSG (ORCPT ); Wed, 21 Jul 2021 02:18:06 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id B1DD861029; Wed, 21 Jul 2021 06:58:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1626850723; bh=/dzN3dGvff07PV8xReNJiv6NdGO7sdh+YWMg6puc25U=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=X6n/g+kWHUUgQWyFDHa6yC6UF9FlbF3Z3kDwXYf78ctmf7J3fy2Cz3Y6m/4jvwLCA Ho9oSdogFAw+NJMkFmOQ0vmxpcQKPKtFyn4kGfoVKN0ROpixGcXAbcZr7H+x81xhOn bm4jmGhG0NBLpkszFJ8saq2EtKTj1JK6TPyS+2UkqFo2CurpVX/OTLFgXCfytuvdkQ ktJ+XxO1UqFEcHQB6xbwfBHi4CFG3aJDyCyU20M0TyfuUT8F7SNNb2Kdj1auVmlLK7 C457DPuw1Y9DnUGfHZMZ+Eh3PUCLDNV/TowDE2jBVub6l9135GX8ZAe0HrCfKvjm63 FfnfCGbe7XU2g== Date: Wed, 21 Jul 2021 09:58:39 +0300 From: Leon Romanovsky To: Christoph Hellwig Cc: Doug Ledford , Jason Gunthorpe , linux-kernel@vger.kernel.org, linux-rdma@vger.kernel.org, Mark Zhang Subject: Re: [PATCH rdma-next 4/7] RDMA/core: Reorganize create QP low-level functions Message-ID: References: <328963df8e30bfc040c846d2c7626becd341f3ec.1626846795.git.leonro@nvidia.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jul 21, 2021 at 07:45:48AM +0100, Christoph Hellwig wrote: > > +/** > > + * ib_create_qp_kernel - Creates a kernel QP associated with the specified > > Any reason this function is renamed? This seems rather unrelated to > the rest of th patch. I wanted to make two functions: ib_create_qp_kernel and ib_create_qp_user. > > > + * protection domain. > > * @pd: The protection domain associated with the QP. > > * @qp_init_attr: A list of initial attributes required to create the > > * QP. If QP creation succeeds, then the attributes are updated to > > * the actual capabilities of the created QP. > > * @caller: caller's build-time module name > > - * > > - * NOTE: for user qp use ib_create_qp_user with valid udata! > > */ > > Also a kerneldoc comment for a function that is an implementation > detail is actively harmful. Please document ib_create_qp instead. Sure, will do.