From d5172bde6414abf6b4b43241fa836bb335a3cd19 Mon Sep 17 00:00:00 2001 From: mzz <2017@duck.com> Date: Sun, 11 Jun 2023 12:49:28 +0800 Subject: [PATCH] fix: enlarge kernel geoip size limit (#130) --- control/kern/tproxy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/control/kern/tproxy.c b/control/kern/tproxy.c index 8276565..4503122 100644 --- a/control/kern/tproxy.c +++ b/control/kern/tproxy.c @@ -42,7 +42,7 @@ #ifndef MAX_MATCH_SET_LEN #define MAX_MATCH_SET_LEN (32 * 2) // Should be sync with common/consts/ebpf.go. #endif -#define MAX_LPM_SIZE 20480 +#define MAX_LPM_SIZE 2048000 #define MAX_LPM_NUM (MAX_MATCH_SET_LEN + 8) #define MAX_DST_MAPPING_NUM (65536 * 2) #define MAX_TGID_PNAME_MAPPING_NUM (8192)