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.6 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,USER_AGENT_SANE_1 autolearn=unavailable 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 C800CECE58C for ; Mon, 7 Oct 2019 15:58:10 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 95BFA2173B for ; Mon, 7 Oct 2019 15:58:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1570463890; bh=c2cfttHvioIgEOzycWuuy+TYcKeyths19DaSZsB4C6g=; h=Date:From:To:Cc:Subject:References:In-Reply-To:List-ID:From; b=eQ4qdG4MtsmJ7dglXTRgCdYejmo5wzJGwmVNiOHyujOQDSxkgbm78AXea5O0RsudY bSDW1ndiNItbURcRTFsN/lDp2LSOJFpYe/epMQKiRf/j/OUrUw0R9DVLMPHl74DbUV 6j9qnQcGBAcazx5Hf5Ga365Y7EMfMYCFRLhX+4/E= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728263AbfJGP6J (ORCPT ); Mon, 7 Oct 2019 11:58:09 -0400 Received: from mail.kernel.org ([198.145.29.99]:54866 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727791AbfJGP6J (ORCPT ); Mon, 7 Oct 2019 11:58:09 -0400 Received: from localhost (unknown [77.137.89.37]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id CD81E20684; Mon, 7 Oct 2019 15:58:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1570463888; bh=c2cfttHvioIgEOzycWuuy+TYcKeyths19DaSZsB4C6g=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=hwnI64sy4HqOg1CMWWQH2IFC/O3zAnQeXbC6EVy7VCIAFo3x9ATytEY84MhiFPMOH slszY64fvIwUS4X04Y8dprJlyY/xjFUYDwEQeJPL5GCoHmLD7lZ3jwQgHucsl39poY KnLbPtzPI/OQ23kzKcyk2AReO5I7vDlNOdhWaSh4= Date: Mon, 7 Oct 2019 18:58:03 +0300 From: Leon Romanovsky To: Bart Van Assche Cc: Doug Ledford , Jason Gunthorpe , Christoph Hellwig , RDMA mailing list , Or Gerlitz , Yamin Friedman , Saeed Mahameed , linux-netdev Subject: Re: [PATCH rdma-next v2 2/3] RDMA/rw: Support threshold for registration vs scattering to local pages Message-ID: <20191007155803.GA5855@unreal> References: <20191007135933.12483-1-leon@kernel.org> <20191007135933.12483-3-leon@kernel.org> <04420039-1877-c35d-83ce-b7365c1e6b65@acm.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <04420039-1877-c35d-83ce-b7365c1e6b65@acm.org> User-Agent: Mutt/1.12.1 (2019-06-15) Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org On Mon, Oct 07, 2019 at 08:12:37AM -0700, Bart Van Assche wrote: > On 10/7/19 6:59 AM, Leon Romanovsky wrote: > > diff --git a/include/rdma/ib_verbs.h b/include/rdma/ib_verbs.h > > index 4f671378dbfc..60fd98a9b7e8 100644 > > --- a/include/rdma/ib_verbs.h > > +++ b/include/rdma/ib_verbs.h > > @@ -445,6 +445,8 @@ struct ib_device_attr { > > struct ib_tm_caps tm_caps; > > struct ib_cq_caps cq_caps; > > u64 max_dm_size; > > + /* Max entries for sgl for optimized performance per READ */ > ^^^^^^^^^ > optimal? > > Should it be mentioned that zero means that the HCA has not set this > parameter? It is always the case for other max_* values. > > > + u32 max_sgl_rd; > > Thanks, > > Bart.