Re: [dpdk-dev] [PATCH v4 2/4] net/mlx4: spawn rdma-core dependency plug-in

2018-01-30 Thread Adrien Mazarguil
On Tue, Jan 30, 2018 at 03:54:59PM -0200, Marcelo Ricardo Leitner wrote: > On Tue, Jan 30, 2018 at 04:34:54PM +0100, Adrien Mazarguil wrote: > ... > > + handle = dlopen(MLX4_GLUE, RTLD_LAZY); > > + if (!handle) { > > + rte_errno = EINVAL; > > + dlmsg = dlerror(); > > +

Re: [dpdk-dev] [PATCH v4 2/4] net/mlx4: spawn rdma-core dependency plug-in

2018-01-30 Thread Marcelo Ricardo Leitner
On Tue, Jan 30, 2018 at 04:34:54PM +0100, Adrien Mazarguil wrote: ... > + handle = dlopen(MLX4_GLUE, RTLD_LAZY); > + if (!handle) { > + rte_errno = EINVAL; > + dlmsg = dlerror(); > + if (dlmsg) > + ERROR("cannot load glue library: %s",

[dpdk-dev] [PATCH v4 2/4] net/mlx4: spawn rdma-core dependency plug-in

2018-01-30 Thread Adrien Mazarguil
When mlx4 is not compiled directly as an independent shared object (e.g. CONFIG_RTE_BUILD_SHARED_LIB not enabled for performance reasons), DPDK applications inherit its dependencies on libibverbs and libmlx4 through rte.app.mk. This is an issue both when DPDK is delivered as a binary package (Linu