summaryrefslogtreecommitdiff
path: root/sysdep/cf
diff options
context:
space:
mode:
authorMaria Matejka <mq@ucw.cz>2023-01-18 12:33:06 +0100
committerMaria Matejka <mq@ucw.cz>2023-01-18 12:33:06 +0100
commit6bb992cb04926895be57dc97e7d569ea15a07db1 (patch)
tree12f90320f7aac28711d308c76db1e51f4d4aa58b /sysdep/cf
parent973aa37e1e28a9c508fe09c008196f64cd3966fd (diff)
parent7144c9ca46f092da33a4e051bbce8f973a3bd8c4 (diff)
Merge branch 'master' of https://gitlab.nic.cz/labs/bird
Diffstat (limited to 'sysdep/cf')
-rw-r--r--sysdep/cf/README3
-rw-r--r--sysdep/cf/linux.h1
2 files changed, 4 insertions, 0 deletions
diff --git a/sysdep/cf/README b/sysdep/cf/README
index 68078bbe..af65aaec 100644
--- a/sysdep/cf/README
+++ b/sysdep/cf/README
@@ -14,3 +14,6 @@ CONFIG_DONTROUTE_UNICAST Use MSG_DONTROUTE flag for unicast packets (def for Fre
CONFIG_USE_HDRINCL Use IP_HDRINCL instead of control messages for source address on raw IP sockets.
CONFIG_RESTRICTED_PRIVILEGES Implements restricted privileges using drop_uid()
+
+CONFIG_MADV_DONTNEED_TO_FREE To free pages, use MADV_DONTNEED instead of MADV_FREE (linux)
+CONFIG_DISABLE_THP Disable transparent huge pages (linux)
diff --git a/sysdep/cf/linux.h b/sysdep/cf/linux.h
index 9c37dd8a..5edc4969 100644
--- a/sysdep/cf/linux.h
+++ b/sysdep/cf/linux.h
@@ -24,6 +24,7 @@
#define CONFIG_INCLUDE_SYSPRIV_H "sysdep/linux/syspriv.h"
#define CONFIG_MADV_DONTNEED_TO_FREE
+#define CONFIG_DISABLE_THP
#ifndef AF_MPLS
#define AF_MPLS 28