DPDK 18.11 uses libverbs and libmlx5 when MLX5 PMD is enabled. This commit makes OVS to link to libverbs and libmlx5 when MLX5 PMD is enabled on DPDK.
Signed-off-by: Eli Britstein <el...@mellanox.com> Reviewed-by: Shahaf Shuler <shah...@mellanox.com> Reviewed-by: Asaf Penso <as...@mellanox.com> --- acinclude.m4 | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/acinclude.m4 b/acinclude.m4 index f038fd457..e47ae8b91 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -300,6 +300,30 @@ AC_DEFUN([OVS_CHECK_DPDK], [ DPDK_EXTRA_LIB="-lmnl" AC_DEFINE([DPDK_MNL], [1], [MLX5 PMD detected in DPDK.])]) + AC_COMPILE_IFELSE([ + AC_LANG_PROGRAM( + [ + #include <rte_config.h> +#if defined(RTE_LIBRTE_MLX5_PMD) && !defined(RTE_LIBRTE_MLX5_DLOPEN_DEPS) +#error +#endif + ], []) + ], [], + [AC_SEARCH_LIBS([mlx5dv_create_wq],[mlx5],[],[AC_MSG_ERROR([unable to find libmlx5, install the dependency package])]) + DPDK_EXTRA_LIB="-lmlx5"]) + + AC_COMPILE_IFELSE([ + AC_LANG_PROGRAM( + [ + #include <rte_config.h> +#if defined(RTE_LIBRTE_MLX5_PMD) && !defined(RTE_LIBRTE_MLX5_DLOPEN_DEPS) +#error +#endif + ], []) + ], [], + [AC_SEARCH_LIBS([verbs_init_cq],[ibverbs],[],[AC_MSG_ERROR([unable to find libibverbs, install the dependency package])]) + DPDK_EXTRA_LIB="-libverbs"]) + # On some systems we have to add -ldl to link with dpdk # # This code, at first, tries to link without -ldl (""), -- 2.14.5 _______________________________________________ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev