[ofa-general] Re: [PATCH] libmlx4: WQE shift calculation

Michael S. Tsirkin mst at dev.mellanox.co.il
Tue May 15 07:47:08 PDT 2007


> Quoting Roland Dreier <rdreier at cisco.com>:
> Subject: Re: [PATCH] libmlx4: WQE shift calculation
> 
>  > the code that calculates WQ size is quite different between kernel and
>  > user. I think that writing the code in a way that will allow to copy it
>  > as is between kernel and user is in place. Would like me to send such a
>  > patch?
> 
> Actually I've been thinking that perhaps we should let libmlx4 tell
> mlx4 in the kernel what WQE sizes it wants to use.  Otherwise it will
> probably be a pain if we want to use a small BB for SQs, etc.

I've been thinking about this, too.
But this is a separate issue from what Eli proposes - we'll still
need to have this math in both kernel and user-space.

-- 
MST



More information about the general mailing list