[ovs-dev] [PATCH V4 2/3] acinclude: Include libverbs and libmlx4 when needed

Eli Britstein elibr at mellanox.com
Mon Feb 11 11:32:34 UTC 2019


DPDK 18.11 uses libverbs and libmlx4 when MLX4 PMD is enabled.

This commit makes OVS to link to libverbs and libmlx4 when MLX4 PMD is
enabled on DPDK.

Signed-off-by: Eli Britstein <elibr at mellanox.com>
Reviewed-by: Asaf Penso <asafp at mellanox.com>
---
 acinclude.m4 | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/acinclude.m4 b/acinclude.m4
index f5a5948fc..1dcae6e85 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -307,12 +307,26 @@ AC_DEFUN([OVS_CHECK_DPDK], [
       ], [],
       [AC_SEARCH_LIBS([mlx5dv_create_wq],[mlx5],[],[AC_MSG_ERROR([unable to find libmlx5, install the dependency package])])])
 
+    AC_COMPILE_IFELSE([
+      AC_LANG_PROGRAM(
+        [
+          #include <rte_config.h>
+#if defined(RTE_LIBRTE_MLX4_PMD) && !defined(RTE_LIBRTE_MLX4_DLOPEN_DEPS)
+#error
+#endif
+        ], [])
+      ], [],
+      [AC_SEARCH_LIBS([mlx4dv_init_obj],[mlx4],[],[AC_MSG_ERROR([unable to find libmlx4, install the dependency package])])])
+
     AC_COMPILE_IFELSE([
       AC_LANG_PROGRAM(
         [
           #include <rte_config.h>
 #if defined(RTE_LIBRTE_MLX5_PMD) && !defined(RTE_LIBRTE_MLX5_DLOPEN_DEPS)
 #error
+#endif
+#if defined(RTE_LIBRTE_MLX4_PMD) && !defined(RTE_LIBRTE_MLX4_DLOPEN_DEPS)
+#error
 #endif
         ], [])
       ], [],
-- 
2.14.5



More information about the dev mailing list