From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 61D23C636CA for ; Wed, 21 Jul 2021 07:15:30 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 45ED260232 for ; Wed, 21 Jul 2021 07:15:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234059AbhGUGem (ORCPT ); Wed, 21 Jul 2021 02:34:42 -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-rdma@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.