Re: Can someone help me understand the reason for this code in ib_isert.c?

Eli Cohen
2014-10-28T10:55:08Z

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.