Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp5250156pxv; Wed, 21 Jul 2021 00:32:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwg8nKHc5xQxu2XTNvgW8sTvQfChEJOOl63z9DYl3WR40WxLQ8P9Z59eKzIjjm4ch6iLnNT X-Received: by 2002:a5d:84d2:: with SMTP id z18mr26493885ior.130.1626852770584; Wed, 21 Jul 2021 00:32:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626852770; cv=none; d=google.com; s=arc-20160816; b=UM5mGniwei7A54XGO4e1H5MGL6R9oO5/STTbFDLIxkbJ+nLqjyZN4rEKulIxy88HRH Q1+qQqpgCNaFhS+2EShm9wz/ME3p8G4gwZI4JyhaUtCJYJgDsFga3Rsac+tjnwMEDplm XJzvHvkU2Bs0/NKkhGEh3y2lnUD3X+yvdOUW6zEYTwVTjwlgnjcwiqVz4168AGpaCMI+ kd7J5iRp6BQ9wl3SNWhwCcAFIHxNWIsXV8NONG5VaeF36mqqumBgu+fifZg0zuGPIvNz PSHFOxhe0q/cHuV+5JzwJ7RIvTwil4e0QZ43TG8al+QQvg6zVQdBJRerbXxKrNlU950y aLeA== 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=+cpj0pWaQTKYTmNaczCQ8ViXX4Ut0YTTUzxBGb3UqhQ=; b=sOdxl1d33/c51b7EIYHyP4WZWUWkGwN3gjbCn+3Iiw9SQ93ZCVc4Ww3u8zNE5Ewx4n NQdHQDdkBXtgxXRxOyZ/A/4EFhgz0KwewFNmOva5SvcLZO4WUtCPNg7dfB/zmMNhu+Wd 6XsP+FkLZnNBpMesWhLaDD0VL6itiSnzP9P/9/SKODNo8/nJjTv+bSvOiLWQSYKT/MIv Z0ckkIYfmRZujHpejFMejgYf9j3uYqsVygjQA7X+85kPOtTWTQwCskD469em5qIjjW5g 0DVW6cGhi5yV16A12c/KHJnZwuWTZ469l0QhwTkPP2Vlu30nDBH0mKfnoh5KgWWj2DGi SGyw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=OYAiveYa; 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 o7si29330384ilc.64.2021.07.21.00.32.38; Wed, 21 Jul 2021 00:32:50 -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=OYAiveYa; 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 S235451AbhGUGuR (ORCPT + 99 others); Wed, 21 Jul 2021 02:50:17 -0400 Received: from mail.kernel.org ([198.145.29.99]:33198 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234902AbhGUGtq (ORCPT ); Wed, 21 Jul 2021 02:49:46 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 64225606A5; Wed, 21 Jul 2021 07:30:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1626852623; bh=Rbm5lvlIBnYYCUcxmz56MfSjlUDSpKvcNp36/M+j+3g=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=OYAiveYahvTV8hATxujEm5kX0yL718tNcTInDRgIdDt3sQtJaouJlTLm2ff5W8mKM /fNCAmX+W7cUmJZkgAeK2FhrivU0V+mdHTRpD2U+/20M5OZpo9u9n7hVt7ieHQA+N4 A4af++u8Hl8oVl4KNbXb+JgeSsz89rzdbajfntZEyRopAJxPvBa5H/olYnwfkV05Z6 xK7O5+MBXMwHvVpzy/p69t3lFuFmPvwkkSxZth0b5a7hycPk8OlQQa0Cd/r8No8sGk PK/NfdkTr5j31Lw2wGqJnIvifSc3CRewBV/8hEp2bv+V4uNitZ2FOLnMphgsg+xnZ3 oFM4ZvyI/gxvg== Date: Wed, 21 Jul 2021 10:30:19 +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 7/7] RDMA/core: Create clean QP creations interface for uverbs Message-ID: References: <8eaf125d3bfb463e1641b6f2794203cc93d76c90.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 08:12:35AM +0100, Christoph Hellwig wrote: > On Wed, Jul 21, 2021 at 10:06:06AM +0300, Leon Romanovsky wrote: > > You will need to add some sort of "if qp tpye" for ib_create_qp_uverbs() callers, > > because they always provide udata != NULL. > > > > After this series, the callers look like this: > > > > 1438 qp = ib_create_qp_uverbs(device, pd, &attr, &attrs->driver_udata, obj); > > ^^^^^^^^^ not NULL > > > > So instead of bothering callers, I implemented it here with one "if". > > Sorry if my mail was confusing. I don't want it in the callers, I > want it as deep down in the stack as possible instead of having the > strange wrapper. I see, will change and resend. Thanks