From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eli Cohen Subject: Re: Can someone help me understand the reason for this code in ib_isert.c? Date: Tue, 28 Oct 2014 12:55:08 +0200 Message-ID: <20141028105508.GC742@mtldesk30> References: <462EF229174FDB4D92ACE4656EA5610051E2EEF9@CMEXMB1.ad.emulex.com> <20141023074347.GA25406@mtldesk30> <544CEFBD.2090405@acm.org> <20141026140808.GA742@mtldesk30> <544F6A8E.9000400@mellanox.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <544F6A8E.9000400-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org> Sender: linux-rdma-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Or Gerlitz Cc: Eli Cohen , Bart Van Assche , Chris Moore , "linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org" , "Nicholas A. Bellinger" List-Id: linux-rdma@vger.kernel.org On Tue, Oct 28, 2014 at 12:06:06PM +0200, Or Gerlitz wrote: > >we already have reported max_sge value. Maybe what we need is another > >field, "guarnateed_num_sge" so applicatios providing this value can be > >sure it would succeed (or there is some other problem). Then they can > >either use this value or iterate from max_sge down to > >guarnateed_num_sge to find the highest possible value. > > > Eli, can we be a bit more restrictive and report something which > would work? I don't think this is the right approach because it would cause applications to ask for values lower than they could succeed and the spec does not require it. -- 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