summaryrefslogtreecommitdiff
path: root/acinclude.m4
diff options
context:
space:
mode:
Diffstat (limited to 'acinclude.m4')
-rw-r--r--acinclude.m46
1 files changed, 6 insertions, 0 deletions
diff --git a/acinclude.m4 b/acinclude.m4
index 8ab690f47..23cd6df44 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -472,6 +472,12 @@ AC_DEFUN([OVS_CHECK_DPDK], [
], [[#include <rte_config.h>]])
], [], [[#include <rte_config.h>]])
+ AC_CHECK_DECL([MAP_HUGE_SHIFT], [
+ AC_DEFINE([DPDK_IN_MEMORY_SUPPORTED], [1], [If MAP_HUGE_SHIFT is
+ defined, anonymous memory mapping is supported by the
+ kernel, and --in-memory can be used.])
+ ], [], [[#include <sys/mman.h>]])
+
# DPDK uses dlopen to load plugins.
OVS_FIND_DEPENDENCY([dlopen], [dl], [libdl])