Re: [PATCH rdma-core] mlx5: Return pointer to CQ doorbell

Jason Gunthorpe
2017-08-24T16:40:06Z

On Thu, Aug 24, 2017 at 06:50:36PM +0300, Leon Romanovsky wrote:

> > Some common macros a bit of use of .alias will do the job, but nobody
> > has cared enough about static linking to do it. We shouldn't worry
> > about that now...
>
> Maybe it is true for libibverbs, but it is not for libmlx4/5 which can
> be statically linked.

Wel.. that is dangerous, there is quite a bit of stuff that the user
has to do exactly right to make that work safely. Including
guarenteeing the exact right version of libibverbs.so is present
when doing the compile.

If people are doing static linking then we should do a lot more to try
and make that work properly.