From: Tom Talpey Subject: Re: [RFC PATCH 08/11] IB/Verbs: Use management helper has_iwarp() for, iwarp-check Date: Tue, 31 Mar 2015 07:19:47 -0400 Message-ID: <551A82D3.70806@talpey.com> References: <551579CA.4030901@profitbricks.com> <55157B98.1060103@profitbricks.com> <20150327161319.GB28412@obsidianresearch.com> <20150327171631.GC27862@phlsvsds.ph.intel.com> <20150327172912.GA28901@obsidianresearch.com> <55196754.5010600@profitbricks.com> <20150330223528.GB27728@obsidianresearch.com> <551A4F24.6090405@profitbricks.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <551A4F24.6090405-EIkl63zCoXaH+58JC4qpiA@public.gmane.org> Sender: linux-rdma-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Michael Wang , Jason Gunthorpe Cc: "ira.weiny" , Roland Dreier , Sean Hefty , Hal Rosenstock , linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-nfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, netdev-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, "J. Bruce Fields" , Trond Myklebust , "David S. Miller" , Or Gerlitz , Moni Shoua , PJ Waskiewicz , Tatyana Nikolova , Yan Burman , Jack Morgenstein , Bart Van Assche , Yann Droneaud , Colin Ian King , Majd Dibbiny , Jiri Kosina , Matan Barak , Alex Estrin List-Id: linux-rdma@vger.kernel.org On 3/31/2015 3:39 AM, Michael Wang wrote: > On 03/31/2015 12:35 AM, Jason Gunthorpe wrote: >> On Mon, Mar 30, 2015 at 05:10:12PM +0200, Michael Wang wrote: >>> I found that actually we don't have to touch this one which >>> only used by HW driver currently. >> I'm having a hard time understanding this, the code in question was in >> >> net/sunrpc/xprtrdma/svc_rdma_recvfrom.c >> >> Which is the NFS ULP, not a device driver. > > I'm not familiar with this part too :-P but yes, it looks like an ulp > to support NFS. It's the NFS server itself. > > Actually I'm thinking about Doug's idea to use rdma_transport_is_XX() > instead of the current basic helper, thus may be use rdma_transport_is_iwarp() > in here could be better, since it's actually a feature of iwarp tech > that RDMA Read only support one scatter-gather entry. No, you should expose an attribute to surface the maximum length of the remote gather list, which varies by adapter as well as protocol. The fact that iWARP is different from IB is not relevant, and conflates unrelated properties. -- 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