[ofa-general] Re: split CQs for IPOIB UD
Eli Cohen
eli at mellanox.co.il
Mon Apr 28 00:28:19 PDT 2008
On Mon, 2008-04-28 at 10:17 +0300, Or Gerlitz wrote:
> Eli Cohen wrote:
> >> Or go simpler and have MAX_SEND_CQE be replaced by (say) MIN {16 ,
> >> send_queue_size/4}
> >>
> > But then I have to evaluate this expression in the fast path so I think
> > we should put the limit at module initialization.
> >
> Using a value V which equals MIN (A, b) which is not predefined does
> mot mean to you need to evaluate the MIN function each time you check if
> X > V, just compute V once and you are done.
>
That's true but then you have to read the calculated value from the
memory location where you saved it while in the case of a macro, the
compare value is placed in the code segment at the same area where the
code is read from.
More information about the general
mailing list