From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christoph Hellwig Subject: Re: [PATCH 2/5] IB/core: Add max_sge argument to rdma_rw_ctx_init() Date: Tue, 28 Jun 2016 13:52:06 +0200 Message-ID: <20160628115206.GB28113@lst.de> References: <419391ba-0c39-11ce-f249-84b428dc73d5@sandisk.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: Sender: linux-rdma-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Bart Van Assche Cc: Doug Ledford , Christoph Hellwig , Sagi Grimberg , "Nicholas A. Bellinger" , Parav Pandit , Laurence Oberman , "linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org" List-Id: linux-rdma@vger.kernel.org On Tue, Jun 28, 2016 at 01:26:03PM +0200, Bart Van Assche wrote: > The SGE limit for a queue pair is typically lower than what is > defined by the HCA limits. Hence make max_sge an argument. I don't think this is the right way to approach any limit. I'd rather have a current limit in the ib_qp structure than having to pass it explicitly and growing driver specific policy once again. -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html