net/mlx: fix rdma-core glue path with EAL plugins
authorAdrien Mazarguil <adrien.mazarguil@6wind.com>
Fri, 2 Mar 2018 14:15:17 +0000 (15:15 +0100)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 30 Mar 2018 12:08:43 +0000 (14:08 +0200)
commit08c028d08c42c1a4cd26aff1ed9c6438ddfd1206
tree142c4f9a14c1a063eee4a7c98182035b1ab9d4aa
parenteef2daf2e199d2a22eba0bdf9ee990c2a9efc101
net/mlx: fix rdma-core glue path with EAL plugins

Glue object files are looked up in RTE_EAL_PMD_PATH by default when set and
should be installed in this directory.

During startup, EAL attempts to load them automatically like other plug-ins
found there. While normally harmless, dlopen() fails when rdma-core is not
installed, EAL interprets this as a fatal error and terminates the
application.

This patch requests glue objects to be installed in a different directory
to prevent their automatic loading by EAL since they are PMD helpers, not
actual DPDK plug-ins.

Fixes: f6242d0655cd ("net/mlx: make rdma-core glue path configurable")
Cc: stable@dpdk.org
Reported-by: Timothy Redaelli <tredaelli@redhat.com>
Signed-off-by: Adrien Mazarguil <adrien.mazarguil@6wind.com>
Tested-by: Timothy Redaelli <tredaelli@redhat.com>
doc/guides/nics/mlx4.rst
doc/guides/nics/mlx5.rst
drivers/net/mlx4/mlx4.c
drivers/net/mlx5/mlx5.c