Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp5246694pxv; Wed, 21 Jul 2021 00:26:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxMksndV3ShDvAGXmFaQ4fvXs7oNp9I631bP9ykEA48V8fUENZTIUaezq4RZDUNrGXzH11H X-Received: by 2002:a92:d84f:: with SMTP id h15mr23933918ilq.12.1626852367400; Wed, 21 Jul 2021 00:26:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626852367; cv=none; d=google.com; s=arc-20160816; b=UOYtRHgKY8LFiTOpPHCtmQWzGWSmr+SczC/Op2y1QXYDsJ9VsGYoU5SYL2hWCYPt33 uMPU6vhJyF41ZFWuE0PQfi5ghR/HcPANJUqk6RcJyuepvgwM9Tbqzq634p8ECfkEvHxg xBkyeIDew6co1Pg8xQYjuHqPIKx3P82fR5DV2PzZaXPjvFcQsbPqJz61wbfEBuCbMRsu gfOHrN6LicdOo8Z1o4cQNFxX0isDx6+w7aCHw3pqBdXmpRAxhEK6aPEVovHTyegJ7UCA mNGFVyRGIOhYs/rQtJdSZQOIFkXJqVRuF1qhzwJYAMNv7gD/vcfT4VOBgAdBEqcdT4lP 1L1A== 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=o4z5O5oVLmWvrpTw0QZXLTi68f1f34aOPbcSzXth/Yk=; b=0ZqO59s96O7Gvoslb/bEUGFDaDPlvZszFBrZyWmF7n+A2rvdfRG0ky7P6Rpmld/Qu1 4tbGwW7qMVYmBlXAjsYutEPa8QioH/RDqnUQvQ69wiVK5EwTG4oR/PWvRNb+ATHr0fse StChqj5kttBtX2FU+aGX+vKbnhj4/bjNy5Lmo5sK+ihJav6rauTMCQ4rf5Bb9enafulZ RRP4ajdPjanGPdrVUb839woPE1tWVTpcDDrW5fC4aGnkFHRkifveZbmTcTCvh4SBBmA9 JmRYsEwQMkufty+pzht5ocpzxoGkAhXy5J/KnsnBO//YnhDnS9kIpcdvqICOhPGKpTVn D8XQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=M0rZgzB2; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u15si18738076iol.68.2021.07.21.00.25.56; Wed, 21 Jul 2021 00:26:07 -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=@infradead.org header.s=casper.20170209 header.b=M0rZgzB2; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235406AbhGUGkI (ORCPT + 99 others); Wed, 21 Jul 2021 02:40:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41992 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235073AbhGUGdx (ORCPT ); Wed, 21 Jul 2021 02:33:53 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EE7C1C061574; Wed, 21 Jul 2021 00:12:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=o4z5O5oVLmWvrpTw0QZXLTi68f1f34aOPbcSzXth/Yk=; b=M0rZgzB2Ma/0G7d/eBEGAZHl/y AdFgECs0mCEP4pLXjlC49SnEa56Fxnxve/f7j/29gZdSTEr9K5gYXGw9NlSAF9wxwig3Chq8Pjkg3 5AAIoiGcRECjdZmNSjamC7w2Gb90Hb5E/98cpoBRhWfcMwugst1quuSRP5ilM3xzfL439lB40aGFb TpHj0lGlvqZcNyCvSeYepYLtMNvhBIItTLuHhypUIE6QZSAzDpegVwuAKtWxrMM8lgeL33LfKFkk6 f/zwcOVp3r2+d6LRwq/3nCrreSMIJNWw/HHnt/0Vj4O39DegdZbBtdDkTdkhF+D+wQPJuHDAo5vWc otOD2PLQ==; Received: from hch by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1m66PD-008ucF-C9; Wed, 21 Jul 2021 07:12:37 +0000 Date: Wed, 21 Jul 2021 08:12:35 +0100 From: Christoph Hellwig To: Leon Romanovsky Cc: Christoph Hellwig , 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: X-SRS-Rewrite: SMTP reverse-path rewritten from by casper.infradead.org. See http://www.infradead.org/rpr.html Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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.