gazelle/0187-cfg-remove-map-perfect-flag-in-lstack.conf.patch
2024-06-14 17:12:22 +08:00

32 lines
1002 B
Diff

From 9cd0a7ebb73b882ef3ac968795fb22ca78fb33cc Mon Sep 17 00:00:00 2001
From: jiangheng <jiangheng14@huawei.com>
Date: Wed, 29 May 2024 16:20:59 +0800
Subject: [PATCH] cfg: remove map-perfect flag in lstack.conf
This parameter is used in ltran mode.
By defualt, ltran mode is not used, so remove it.
---
src/lstack/lstack.conf | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/lstack/lstack.conf b/src/lstack/lstack.conf
index 07a6092..0b7dbc9 100644
--- a/src/lstack/lstack.conf
+++ b/src/lstack/lstack.conf
@@ -8,10 +8,11 @@
# PURPOSE.
# See the Mulan PSL v2 for more details.
-dpdk_args=["--socket-mem", "2048,0,0,0", "--huge-dir", "/mnt/hugepages-lstack", "--proc-type", "primary", "--legacy-mem", "--map-perfect"]
+dpdk_args=["--socket-mem", "2048,0,0,0", "--huge-dir", "/mnt/hugepages-lstack", "--proc-type", "primary", "--legacy-mem"]
stack_thread_mode="run-to-wakeup"
+#ltran mode need add "--map-perfect" in dpdk_args
use_ltran=0
kni_switch=0
--
2.33.0