summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/configure.ac1
-rw-r--r--src/plugins/dpdk.am4
2 files changed, 5 insertions, 0 deletions
diff --git a/src/configure.ac b/src/configure.ac
index 7733daa6599..f35e139a69c 100644
--- a/src/configure.ac
+++ b/src/configure.ac
@@ -198,6 +198,7 @@ DISABLE_ARG(svm, [Disable svm and dependant libs and binaries])
DISABLE_ARG(papi, [Disable Python API bindings])
# --with-X
+WITH_ARG(dpdk_mlx5_pmd, [Enable Mellanox DPDK PMD driver])
# --without-X
WITHOUT_ARG(libssl, [Disable libssl])
diff --git a/src/plugins/dpdk.am b/src/plugins/dpdk.am
index 6c15d0abd8e..01655667290 100644
--- a/src/plugins/dpdk.am
+++ b/src/plugins/dpdk.am
@@ -30,7 +30,11 @@ if WITH_LIBNUMA
dpdk_plugin_la_LDFLAGS += -Wl,-lnuma
endif
+if WITH_DPDK_MLX5_PMD
+dpdk_plugin_la_LDFLAGS += -Wl,-lm,-ldl,-lmnl
+else
dpdk_plugin_la_LDFLAGS += -Wl,-lm,-ldl
+endif
dpdk_plugin_la_LIBADD =
dpdk_plugin_la_SOURCES = \